So I'm writing a console application in C# for class and I need to figure out how to check if the input is a decimal or not. It would follow this code that I've written so far:
Console.Write("Enter the annual amount of money saved: ");
decimal moneySaved = Convert.ToDecimal(Console.ReadLine());
After it checks the input I'd want it to output something like "You didn't enter a number, please try again."
Thanks in advance!