0

Help on converting a loop

I need to convert a while loop to a for while int count = 0; while (count <50) { cout << "count is " << count << endl; count++; }

12th Mar 2017, 8:29 PM
Hunter isaacs
1 Answer
+ 6
for (int count = 0; count < 50; count++) { cout << "count is " << count << endl; }
12th Mar 2017, 8:56 PM
AtoMX
AtoMX - avatar