ItzEdInYourBed

99bottles.cpp

May 18th, 2020
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main() {
  4.  
  5.   // Write a for loop here:
  6.   for (int bottle = 99; bottle > 0; bottle--){
  7.     std::cout << bottle << " bottles of pop on the wall.\n";
  8.     std::cout << "Take one down and pass it around.\n";
  9.     std::cout << bottle - 1 << " bottles of pop on the wall.\n";
  10.   }  
  11. }
Add Comment
Please, Sign In to add comment