I'm trying to learn how a while loop works but for some reason it still doesn't work here's my code:
1 2 3 4 5 6 7 8 9 10
#include <iostream>
int main () {
int iCout = 0;
while (iCout < 5) {
iCout = iCout + 1;
std::cout << iCout << std::endl;
}
}
does anybody know whats wrong with it? please correct it if you can that would help alot
by the way i'm using Visual C++ 2008 express if you need to know