Checking if input is correct data type in C#
<p>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:</p>

<pre><code>            Console.Write("Response Value &gt; ");
            Response = float.Parse(Console.ReadLine())

            Ask_Count = Ask_Count + 1;
            if (Response &gt; 0 &amp;&amp; Response &lt; 6)
            {
                Valid_Count = Valid_Count + 1;
            }
</code></pre>

<p>How would I go about the program checking to see if Response is a float? </p>

<p>Thank you.</p>
