my entire code is not shown

Joined
Jan 15, 2011
Messages
4
Reaction score
0
i was doing the classical 'bottle of beer' code for c++ and it worked out pretty well except for the fact that when i ran the code, a few lines from the beginning of the song aren't shown if i uses newline characters. Here is the code:
PHP:
#include <iostream>

using namespace std;

int main()
{
    int bb = 100;
    while (bb > 0 )
    {
        cout << bb << " bottles of beer on the wall, " << bb << " bottles of beer." << endl;
        bb--;
        cout << "Take one down and pass it around, " << bb << " bottles of beer on the wall\n";
    }
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top