How to use loop with specific value increase in c++?

  c++

How can we check x condition when increase every 1000 value in loop ?
Example: x start from 1 and max loop 1,000,000. when x every increase 1000 value like 1000,2000 and 3000 till 1,000,000 we can condition for x.

How to write that function in c++ ?

Source: Windows Questions C++

LEAVE A COMMENT