You are on page 1of 2

PROGRAM NO.

using System;
using System.Collections.Generic;
using System.Text;

namespace largestno
{
class xx
{
static void Main(string[] args)
{
int a, b, c;
Console.WriteLine("enter first no....");
a=int.Parse(Console.ReadLine());
Console.WriteLine("enter second no....");
b =int.Parse( Console.ReadLine());
Console.WriteLine("enter third no....");
c = int.Parse(Console.ReadLine());
if (a > b)
{
if(a>c)
Console.WriteLine("a is lorgest:"+a);
else
Console.WriteLine("c is lorgest:"+c);
}
else
if(b>c)
{
Console.WriteLine("b is lorgect:"+b);
}
else
Console.WriteLine("c is lorgest:"+c);
}
}
}
Output of the Program:
enter first no....
15
enter second no....
48
enter third no....
72
b is lorgect:72
Press any key to continue . . .

You might also like