Advertisement
Guest User

Untitled

a guest
Nov 25th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1.  public int Control()
  2.         {
  3.             int x;
  4.             while (!int.TryParse(Console.ReadLine(), out x))
  5.             {
  6.                 Console.WriteLine("Ошибка! Введено буквенное выражение");
  7.                 Console.WriteLine("Повторите попытку (нажмите на Enter)");
  8.                 Console.ReadLine();
  9.             }
  10.             return x;
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement