Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int switcher;
- do
- {
- checkInput = int.TryParse(Console.ReadLine(), out switcher);
- if ((!checkInput) || ((switcher > 4) || (switcher < 1))) { Console.WriteLine("Неверный формат ввода!"); checkInput = false; }
- } while (!checkInput);
Advertisement
Add Comment
Please, Sign In to add comment