// prints as many as "*" as the input number n #include using std::cout; using std::cin; using std::endl; // function main int main() { cout << " Enter a positive integer number, -1 to exit "; int number; cin >> number; while (number != -1) { for(int i=1; i<= number; i++) cout << "*"; cout << endl; cout << " Enter a positive integer number, -1 to exit "; cin >> number; } //end while return 0; // successful termination } // end main