Control Structures

xcx
Last edited on
if (n % 10 ==0)

You mean i instead of n.

Other than that, you can declare n and initialize it altogether:

int n = 1000;

And you should avoid system("pause"). Read the second answer if you want to know why: http://stackoverflow.com/questions/1107705/systempause-why-is-it-wrong
Topic archived. No new replies allowed.