Skip to content

Instantly share code, notes, and snippets.

@gagannn
Created September 16, 2019 08:56
Show Gist options
  • Save gagannn/70ecc30e9f7e606ef174fc0a70144891 to your computer and use it in GitHub Desktop.
Save gagannn/70ecc30e9f7e606ef174fc0a70144891 to your computer and use it in GitHub Desktop.
Add 2 integers
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Add");
int num1;
int num2;
num1 = Int32.Parse(Console.ReadLine());
num2 = Int32.Parse(Console.ReadLine());
int result = num1 + num2;
Console.WriteLine("Result= "+result);
Console.ReadKey(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment