Advertisement
koksibg

SpeedInfo

Nov 2nd, 2016
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.84 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace SpeedInfo
  8. {
  9.     class SpeedInfo
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double speed = double.Parse(Console.ReadLine());
  14.             if (speed <= 10)
  15.                 Console.WriteLine("slow");
  16.             else if (speed > 10 && speed <= 50)          
  17.                 Console.WriteLine("average");            
  18.             else if (speed > 50 && speed <= 150)            
  19.                 Console.WriteLine("fast");            
  20.             else if (speed > 150 && speed <= 1000)            
  21.                 Console.WriteLine("ultra fast");          
  22.             else if (speed > 1000)            
  23.                 Console.WriteLine("extremely fast");          
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement