how to write a program in C++ which receives 10 numbers from input and checks whether these numbers are in ascending order or not?
<p>I am a newbie. And I want to do this program without using array and only with 3 variables. Looking forward for your help. I stuck up here:</p>

<pre><code>#include&lt;iostream&gt;
#include &lt;math.h&gt;
using namespace std;

int main()
{
    float a,b,c;

    cout &lt;&lt; "Please Enter the numbers: " &lt;&lt; endl;
    for(float k=0; k&lt;=9; k++)
    {
        cout &lt;&lt; "Enter number " &lt;&lt; k+1 &lt;&lt; " : ";
        cin &gt;&gt; c    
    }
}
</code></pre>

<p>I am not getting the part how to take the values in a &amp; b and compare them with each other. Please let me know if I am heading towards wrong direction.
looking forward for the help.</p>

<p>Thanks in advance.</p>

<p>Regard,
Sam</p>
