using System; class Program { static void Main(string[] args) { int num1, num2, max; Console.Write("Enter first number: "); num1 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter second number: "); num2 = Convert.ToInt32(Console.ReadLine()); if (num1 > num2) // check if first number is larger than the second one { max = num1; // if so maximum is the first number } else { max = num2; // otherwise maximum is the second number } Console.WriteLine("maximum of these two numbers is: {0}", max); } }