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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.