Advertisement
tsvetelinapasheva

TsvetelinaPasheva/ConditionalStatementsExercise/03.SpeedInfo

Jan 16th, 2021
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp9
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double speed = double.Parse(Console.ReadLine());
  10.  
  11.             if (speed <= 10)
  12.             {
  13.                 Console.WriteLine("slow");
  14.             }
  15.  
  16.             else if (speed <= 50)
  17.             {
  18.                 Console.WriteLine("average");
  19.             }
  20.  
  21.             else if (speed <= 150)
  22.             {
  23.                 Console.WriteLine("fast");
  24.             }
  25.  
  26.             else if (speed <= 1000)
  27.             {
  28.                 Console.WriteLine("ultra fast");
  29.             }
  30.  
  31.             else if (speed > 1000)
  32.             {
  33.                 Console.WriteLine("extremely fast");
  34.             }
  35.         }
  36.     }
  37. }
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement