Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int myid;
- string input = Console.ReadLine();
- bool isString = int.TryParse(input, out myid);
- do Console.Write("My ID: ");
- while (!int.TryParse(Console.ReadLine(), out int myid));
- link:
- https://exe.io/yCyxPA69
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement