Skip to content

Instantly share code, notes, and snippets.

@nanwang2016
Created August 17, 2020 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanwang2016/5511beb2ab4017358bcf44098e0c483b to your computer and use it in GitHub Desktop.
Save nanwang2016/5511beb2ab4017358bcf44098e0c483b to your computer and use it in GitHub Desktop.
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