99 bottles of beer on the wall

When I try and run the program, it starts at 75, instead of 99. Also, what's the point of using notepad when C++ comes with a thing to wright code in? I am very new to programming.
Thanks



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <cmath>


int main(){
using namespace std;
int x;
for (x=99;x>0;x--)
    cout << x << " " << "bottles of beer on the wall\n" << " " << x << " " << "bottles of beer\n"
    << " " << "take one down pass it around\n" << endl;
    cout << x << " " << "Bottles of beer on the wall";
    
    
             
system("pause");
return 0;   
}    
           


Last edited on
1) It starts at 99. It might be you can only see the last 75 lines in the console. (The console in Windows only lets you see the last 80ish lines IIRC)
2) C++ is a language, not an IDE
also theres no need for cmath or putting using namespace std; in your main. define it outside of your main function.
That was for a tut I was doing and didn't bother to erase it. :D
Topic archived. No new replies allowed.