Create a C# program that asks the user for a text (x) and converts to check if the text is a number or not.
It is not a number
public class CheckNumberWithExceptions
public static void Main(string args)
string x = Console.ReadLine();
Console.WriteLine("It's a number");
Console.WriteLine("It is not a number");
Practice C# anywhere with the free app for Android devices.
Learn C# at your own pace, the exercises are ordered by difficulty.
Your donations support our work and contribute to the maintenance of the app.
Own and third party cookies to improve our services. If you go on surfing, we will consider you accepting its use.