DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on

3. Even Or Odd

using System;

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

        if (number % 2 == 0)
        {
            Console.WriteLine("even");
        }
        else
        {
            Console.WriteLine("odd");
        }
    }
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)