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()); max = num1; // default assignment - maximum is the first number if (num2 > max) // check if second number is larger than the first one { max = num2; // if so maximum is the second number } Console.WriteLine("maximum of these two numbers is: {0}", max); } }