Advertisement
bolo17

Untitled

Nov 22nd, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. int myid;
  2. string input = Console.ReadLine();
  3. bool isString = int.TryParse(input, out myid);
  4. do Console.Write("My ID: ");
  5. while (!int.TryParse(Console.ReadLine(), out int myid));
  6. link:
  7. https://exe.io/yCyxPA69
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement