needing help with converting

trying to convert to a do loop and a for loop
having a hard time with the do loop anyone have any suggestions?


int number = 99;

while (number > 0)

{

cout << number <<" bottles of beer on the wall.\n";

cout << number <<" bottles of beer.\n";

cout << "Take one down, pass it around.\n";

number--;

cout << number <<" bottles of beer on the wall.\n\n\n";

}
All you need to do is take your code within your while loop and then move your while condition after the bottom curly bracket. Add a do at the top and your code should run perfectly.
Good luck!
Topic archived. No new replies allowed.