#include #include using namespace std; // Title : Making Annoying Songs Easily // Author: Chikashi KIMURA // Date : 10/Jul/03 int main() { int num; string beverage; cout << "Input positive integer (<=100)" << endl; cin >> num; cout << "What kind of beverage on the wall?" << endl; cin >> beverage; if (num <= 0 || num > 100) { cout << "Input positive integer (<=100)!" << endl; } else { while(num>1) { cout << num <<" bottles of " << beverage << " on the wall" << endl; cout << num <<" bottles of " << beverage << endl; cout << "If one of those bottles should happen to fall" << endl; num -= 1; } cout << "1 bottle of " << beverage << " on the wall" << endl; } return 0; }