Mitchell S.

asked • 07/31/18

Convert the following C++ code statements to the equivalent C++ for loop code statements

14. Convert the following C++ code statements to the equivalent C++ for loop code statements:
int count = 10;
while (count <= 100)
{
cout << "The count is " << count << endl;
count++;
}

In Free P.

for (int count = 0 ; count <= 100 ; i++)
{
cout <<"The count is "<< count <<endl;
}
Report

07/31/18

Keith B.

Should be count++ not i++
Report

06/07/19

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.