Accept Two Numbers From User and perform Addition of Two Numbers in Visual Studio 2010 Using C#:
Accept Two Numbers From User and perform Addition of Two Numbers in Visual Studio 2010 Using C#:
class Addition1
{
static void Main()
{
int e, f, g;
Console.WriteLine("Enter A Two Numbers ");
e = Int16.Parse(Console.ReadLine ());
f = Int16.Parse(Console.ReadLine());
g = e + f;
Console.WriteLine("Additon of 2 numbers which is Accepted Through User {0}", g);
Console.ReadKey();
}
}
Comments
Post a Comment