Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SpeedInfo
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] data = { "slow", "average", "fast", "ultra fast", "extremely fast" };
- double speed = double.Parse(Console.ReadLine());
- if (speed>1000)
- {
- Console.WriteLine(data[4]);
- }
- else if (speed>150&&speed<=1000)
- {
- Console.WriteLine(data[3]);
- }
- else if (speed>50&&speed<=150)
- {
- Console.WriteLine(data[2]);
- }
- else if (speed>10&&speed<=50)
- {
- Console.WriteLine(data[1]);
- }
- else
- {
- Console.WriteLine(data[0]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement