C++ while statement loop until its accompanying statement evaluates to false
#include <iostream> using namespace std; int main(int argc, const char * argv[]) { unsigned int array[10]; unsigned int count = 0; while (count < 10) { //w w w . ja v a 2 s.c om array[count] = count * 2; cout << "Loop Iteration: " << array[count++] << endl; } return 0; }