Control Structures

Jul 6, 2010 at 4:28pm
xcx
Last edited on Jul 26, 2010 at 4:19pm
Jul 6, 2010 at 4:35pm
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.