Skip to content

Instantly share code, notes, and snippets.

@rugbyprof
Created August 28, 2024 04:11
Show Gist options
  • Save rugbyprof/7e11c09e7af39f5274c56788d2cc1db2 to your computer and use it in GitHub Desktop.
Save rugbyprof/7e11c09e7af39f5274c56788d2cc1db2 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
for (int i = 99; i > 0; i--) {
cout << i << " Bottles of beer on the wall " << i << " bottles of beer.\n";
cout << "Take one down, pass it around, " << (i - 1)
<< " bottles of beer on the wall." << endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment