DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on

10. Invalid Number

using System;

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

        if (number == 0 || number >= 100 && number <= 200)
        {
            Console.WriteLine();
        }
        else
        {
            Console.WriteLine("invalid");
        }
    }
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)