What I would like is to basically have the user enter in a float, and then the system check that the input is indeed a float, and if it is then it will proceed with the code, and if it is not then the user will have to re-input the with the correct data type. Sorry for the beginners question, an example of the code is:
Console.Write("Response Value > ");
Response = float.Parse(Console.ReadLine())
Ask_Count = Ask_Count + 1;
if (Response > 0 && Response < 6)
{
Valid_Count = Valid_Count + 1;
}
How would I go about the program checking to see if Response is a float?
Thank you.