* C# Program to Find Greatest among 2 numbers
*/
using System;
class prog
{
public static void Main()
{
int a, b;
Console.WriteLine("Enter the Two Numbers : ");
a = Convert.ToInt32(Console.ReadLine());
b = Convert.ToInt32(Console.ReadLine());
if (a > b)
{
Console.WriteLine("{0} is the Greatest Number", a);
}
else
{
Console.WriteLine("{0} is the Greatest Number ", b);
}
Console.ReadLine();
}
}
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.