Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _03.SpeedInfo
- {
- class Program
- {
- static void Main(string[] args)
- {
- //1. скорост
- //2. проверки за скоростта
- // до 10 -> slow
- // до 50 -> average
- // до 150 -> fast
- // до 1000 -> ultra fast
- // над 1000 -> extremely fast
- double speed = double.Parse(Console.ReadLine());
- if (speed <= 10)
- {
- Console.WriteLine("slow");
- }
- else if (speed <= 50)
- {
- Console.WriteLine("average");
- }
- else if (speed <= 150)
- {
- Console.WriteLine("fast");
- }
- else if (speed <= 1000)
- {
- Console.WriteLine("ultra fast");
- }
- else
- {
- Console.WriteLine("extremely fast");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement