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:
#include<iostream>
#include <math.h>
using namespace std;
int main()
{
float a,b,c;
cout << "Please Enter the numbers: " << endl;
for(float k=0; k<=9; k++)
{
cout << "Enter number " << k+1 << " : ";
cin >> c
}
}
I am not getting the part how to take the values in a & b and compare them with each other. Please let me know if I am heading towards wrong direction. looking forward for the help.
Thanks in advance.
Regard, Sam