// pgm12 -- while loop // 9/19/16 #include #include #include using namespace std; int main() { int num=1; int limit; cout << "How many times do you want the loop to run? "; cin >> limit; while (num <= limit) { cout << "counting up, num= " << setw(4) << num << endl; num++; } return 0; }