Ive written this code in different ways and it doesnt work right


if 100 is used in the prgram it works fine. It will count up or down to 100 or from 100 just fine. But when you put 1000 or 1000. For example : if i have the number 1000 in the program, it starts counting at 702 and not at 1.


Code:
#include<iostream>
using namespace std;

int main()
{
    
int number;
    for ( number = 1; number < 1001; number++)
    cout << number << "is this working" <<endl;

system("pause");
return 0;
}
its also been written like this (and doesnt work)
Code:
#include<iostream>

int main()
{
    
int number;
    for ( number = 1; number < 1001; number++)
    std::cout << number << "is this working" <<std::endl;

system("pause");
return 0;
}
its also been written like this (and doesnt work)
Code:
#include<iostream>
using namespace std;

int main()
{
    

    for ( int number = 1; number < 1001; number++)
    cout << number << "is this working" <<endl;

system("pause");
return 0;
}
it's been written many ways and each time it doesnt work, it always starts of at 702

The thing I dont understand is why does it pick the number 702 to start counting from?

again, with 100 it wont do this, it runs properly. With 1000 and 10000, ive tried using dopuble instead of in. no use.

thank you