I don't know what this problem is asking me to do :
initialize both i and n in the same line. Initialize n to 0, and i to 0.
This problem is in the Loop Chapter:
for (int i = 0; i <= 5; i++)
cout << i << " ";
OR
while (i <= n)
cout << i << " ";
i = i + 1
Can anyone rephrase the problem so I can understand what to do??

Recommended Answers

That wasn't a rephrasing of the problem...

Jump to Post

All 3 Replies

for (int i = 0,n=0; i <= 5; i++,n++)
commented: Please explain how that is a REPHRASING of the problem... -4
for (int i = 0,n=0; i <= 5; i++,n++)

Thanks, mazzica1.

That wasn't a rephrasing of the problem...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.