cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Control Structures
Control Structures
Jul 6, 2010 at 4:28pm UTC
koutsos1
(26)
xcx
Last edited on
Jul 26, 2010 at 4:19pm UTC
Jul 6, 2010 at 4:35pm UTC
filipe
(1165)
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.