Write a C# program to find greatest number
using System;
public class test
{
public static void Main()
{
int a,b;
Console.WriteLine("Enter First Number:");
a= Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter Second Number:");
b= Convert.ToInt32(Console.ReadLine());
if(a>=b)
Console.Write("First Number is Greatest:"+a);
else
Console.Write("Second Number is Greatest:"+b);
}
}
No comments