xneoangel
Persona User
- Thread Starter
- #41
Ok i'm kinda stuck with this code, can you guys help me a bit?
#include <iostream>
using namespace std;
int main ()
{
int n;
cout << "Enter the starting number > "; //i don't understand what the > "; part does
cin >> n;
while (n>0) {
cout << n << ", "; /*and this the other line i don't understand, i know what cout << n does but the << ", " part confuses me*/
--n;
}
cout << "FIRE!";
return 0;
}
Thanks Toasty the system("pause") command works like a charm.
#include <iostream>
using namespace std;
int main ()
{
int n;
cout << "Enter the starting number > "; //i don't understand what the > "; part does
cin >> n;
while (n>0) {
cout << n << ", "; /*and this the other line i don't understand, i know what cout << n does but the << ", " part confuses me*/
--n;
}
cout << "FIRE!";
return 0;
}
Thanks Toasty the system("pause") command works like a charm.