Created
August 17, 2020 13:20
-
-
Save nanwang2016/5511beb2ab4017358bcf44098e0c483b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace TestFile | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var result = Calculator.Sum(5, 7); | |
Console.WriteLine("The sum of 5 and 7 is " + result); | |
} | |
} | |
public static class Calculator | |
{ | |
public static int Sum(int a, int b) | |
{ | |
return a + b; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment