using System;
public class Program
{
public static void Main()
int x;
// Printing Text on Console.
Console.WriteLine("Please enter a number: \n");
// Reading The user's input and storing it in a string.
string str = Console.ReadLine();
// Here we are checking the user's entered string if it is a number or not.
// Example: User puts: "34", then the value for isNumerical will be true
// Example 2: User puts "abcdef" then the value of isNumerical will be false
// Now the isNumerical is true or false based on the user's input
if (int.TryParse(str, out x))
// if it is true (numerical is a number), print Numeric entered
Console.WriteLine("Numeric entered");
}
else {
// if it is false (numerical is not a number), print Non Numeric entered
Console.WriteLine("Non Numeric entered");
Console.ReadLine();