DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on

2. Greater Number

using System;

namespace GreaterNumber
{
internal class Program
{
    static void Main(string[] args)
    {
        int num1 = int.Parse(Console.ReadLine());
        int num2 = int.Parse(Console.ReadLine());

        if (num1 > num2)
        {
            Console.WriteLine(num1);
        }
        else
        {
            Console.WriteLine(num2);
        }
    }
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)