Please send questions to
st10@humboldt.edu .
/*-----
Contract: main: void -> int
Purpose: BURP! 15 times to the screen, each time on its
own line
Examples: when called, this program should print the following
to the screen:
BURP!
BURP!
...
BURP!
(a total of 15 lines)
by: Sharon M. Tuttle
last modified: 4-11-10
-----*/
#include <iostream>
using namespace std;
int main()
{
// set up the loop counter and desired burp number
int count = 0;
int const NUM_BURPS = 15;
// print that many burps to the screen
while (count < NUM_BURPS)
{
cout << "BURP!" << endl;
count++;
}
return EXIT_SUCCESS;
}