Here's my body:
Here's what it produces:Code:{ int i; int loopcount; loopcount = 5; { while (loopcount-- > 0); cout << "Please insert a number.\n"; cin >> i; { if (i % 2 == 0) cout << i << " is even.\n"; else cout << i << " is odd.\n"; } } cout << "Alright that's 5, come back later for more.\n"; system("PAUSE"); return 0; }
Please insert a number.
2
2 is even.
Alright that's 5, come back later for more.
Press any key to continue . . .
What I want it to do:
I 'm trying to making it loop 5 times before quitting but it seems to be ignoring my while command. What am I missing here?