i can't get this program to work. I'm trying to get 2 numbers from the user input and then add the numbers inbetween the 2 number from the input. Please help me. By the way, here's my code.
#include <iostream.h>
int main()
{
int x,y; // two numbers
int hold; // holds the screen
cout << "what is number 1 " << endl;
cin >> x;
cout << "what is number 2 " << endl;
cin >> y;
for (x>=1; x<=y; x++)
cin >> hold;
return 0;
}
Any help would by appreciated.
Thanks.