using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bigest
{
class Program
{
static void Main(string[] args)
{
int a, b, c;
Console.WriteLine("Enter 'A' value");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter 'B' value");
b = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter 'C' value");
c = Convert.ToInt32(Console.ReadLine());
if (a > b && a > c)
{
Console.WriteLine("A is greater");
}
else if (b > c)
{
Console.WriteLine("B is greater");
}
else
{
Console.WriteLine("C is greater");
}
Console.ReadLine();
}
}
}
No comments:
Post a Comment