Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Main(string[] args)
- {
- int userNumber;
- do
- {
- Console.WriteLine("Введите целое число");
- }
- while(int.TryParse(Console.ReadLine(), out userNumber) == false);
- Console.WriteLine("Поздравляю, вы ввели: {0}", userNumber);
- Console.ReadKey();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement