Hackster is hosting Impact Spotlights: Industrial Automation. Watch the stream live on Thursday!Hackster is hosting Impact Spotlights: Industrial Automation. Stream on Thursday!
bradshawlaurenn
Published © Apache-2.0

Professionalism

The construct of professionalism

ExpertProtip299
Professionalism

Things used in this project

Hardware components

USB Expansion HUB, USB 2.0 Powered
USB Expansion HUB, USB 2.0 Powered
×1

Software apps and online services

Google Sheets
Google Sheets

Story

Read more

Schematics

Scheme

Scheme

Code

Calc.cs

C#
Calculator
// Calc.cs
using System;

namespace CalculatorExample
{
    // This class contains the app's entry point.
    class Program
    {
        static void Main()
        {
            Calc c = new Calc();
            int ans = c.Add(10, 84);
            Console.WriteLine("10 + 84 is {0}.", ans);

            // Wait for user to press the Enter key before shutting down.
            Console.ReadLine();  
        }
    }

    // The C# calculator.
    class Calc
    {
        public int Add(int x, int y)
        { return x + y; }
    }
}

Credits

bradshawlaurenn
0 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.