nvnnaidenov

SpeedInfo - School Book 3.0

Jul 28th, 2021
848
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class SpeedInfo
  4. {
  5.     static void Main()
  6.     {
  7.         double speed = double.Parse(Console.ReadLine());
  8.  
  9.         if(speed <= 10)
  10.         {
  11.             Console.WriteLine("slow");
  12.         }
  13.         else if(speed > 10 && speed <= 50)
  14.         {
  15.             Console.WriteLine("average");
  16.         }
  17.         else if(speed > 50 && speed <= 150)
  18.         {
  19.             Console.WriteLine("fast");
  20.         }
  21.         else if(speed > 150 && speed <= 1000)
  22.         {
  23.             Console.WriteLine("ultra fast");
  24.         }
  25.         else if(speed > 1000)
  26.         {
  27.             Console.WriteLine("extremely fast");
  28.         }
  29.     }
  30. }
RAW Paste Data