#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
int num1, a1, b1, c1, d1, e1, subnum1;
cout << "Please enter a number: ";
cin >> num1;
subnum1 = num1;
while ( subnum1 > 9999 )
{
subnum1 = subnum1 - 1;
a1 = a1 + 1;
}
[this while loop is used a few more times]
cout << "your number is " << num1;
cout << "your integer is " << a1;
return 0;
}
This is just a little bit of my code.