Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace NumberChecker
- {
- using System;
- public class Program
- {
- static void Main()
- {
- try
- {
- var word = int.Parse(Console.ReadLine());
- Console.WriteLine("It is a number.");
- }
- catch
- {
- Console.WriteLine("Invalid input!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement