Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Labs20180517
- {
- class Program
- {
- static void Main(string[] args)
- {
- //12.Number checker
- try
- {
- int number = int.Parse(Console.ReadLine());
- Console.WriteLine("It is a number.");
- }
- catch (Exception)
- {
- Console.WriteLine("Invalid input!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement