archangelmihail

inputing the integer numbers

Dec 5th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.20 KB | None | 0 0
  1. bool isCorrect = false;
  2. int numberOne = 0;
  3. //inputing the integer numbers
  4. while (!isCorrect)
  5. {
  6. Console.Write("Input first number: ");
  7. isCorrect = int.TryParse(Console.ReadLine(), out numberOne);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment