Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ResultCheckOcenkaArray
- {
- class Program
- {
- static void Main(string[] args)
- {
- double ocenka = 0.00D;
- var array = new[] { "poor", "average", "good", "very good", "excellent" };
- Nachalo:
- string input = Console.ReadLine();
- if (input.Length == 4 || input.Length == 1 )
- {
- if (double.TryParse(input, out ocenka))
- {
- if (ocenka >= 2.00 && ocenka <=6)
- {
- Console.WriteLine(array[(int)Math.Round(ocenka) - 2]);
- goto Nachalo;
- }
- goto Nachalo;
- }
- goto Nachalo;
- }
- goto Nachalo;
- }
- }
- }
Add Comment
Please, Sign In to add comment