Advertisement
IvanITD

06.SpeedInfo

Jan 15th, 2024
619
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | Source Code | 0 0
  1. double pace = double.Parse(Console.ReadLine());
  2.  
  3. if (pace <= 10)
  4. {
  5.     Console.WriteLine("slow");
  6. }
  7. else if (pace > 10 && pace <= 50)
  8. {
  9.     Console.WriteLine("average");
  10. }
  11. else if (pace > 50 && pace <= 150)
  12. {
  13.     Console.WriteLine("fast");
  14. }
  15. else if (pace > 150 && pace <= 1000)
  16. {
  17.     Console.WriteLine("ultra fast");
  18. }
  19. else
  20. {
  21.     Console.WriteLine("extremely fast");
  22. }
  23.  
Tags: C#
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement