ivanitd

Ivan Ivanov

Posted on January 20, 2023

6. Speed Info
using System;

namespace Speed_Info
{
internal class Program
{
    static void Main(string[] args)
    {
        double num = double.Parse(Console.ReadLine());

        if (num <= 10)
        {
            Console.WriteLine("slow");
        }
        else if (num > 10 && num <= 50)
        {
            Console.WriteLine("average");
        }
        else if (num > 50 && num <= 150)
        {
            Console.WriteLine("fast");
        }
        else if (num > 150 && num <= 1000)
        {
            Console.WriteLine("ultra fast");
        }
        else if (num > 1000)
        {
            Console.WriteLine("extremely fast");
        }
    }
}
}
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
ivanitd
Ivan Ivanov

Posted on January 20, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

10. Invalid Number
csharp 10. Invalid Number

January 20, 2023

11. Fruit Shop (Switch Construction)
csharp 11. Fruit Shop (Switch Construction)

January 20, 2023