C++ for statement iterate as many times as necessary
#include <iostream> using namespace std; int main(int argc, const char * argv[]) { for (unsigned int i=0; i<10; ++i) { //from ww w . ja v a2 s . c om cout << "Loop Iteration: " << i << endl; } return 0; }