#include <iostream>
usingnamespace std;
int m3;// first multiple//
int m1;
int i=0;
int main() {
cout << "Please enter in your first number:";
cin >> m3;
while (10<i){// actual calculations//
int m2=i*m3;
m1=m2+m1;
i++;
}
cout << m1;
system("PAUSE");
return 0;
}
So you're saying this is what you're trying to do? Find all multiples of x (an integer entered by user) that are below 1000. Then add the multiples together.