DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on

6. Number in Range

using System;

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

        if (number >= -100 && number != 0 && number <= 100)
        {
            Console.WriteLine("Yes");
        }
        else
        {
            Console.WriteLine("No");
        }
    }
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)