I have an assignment where we are to write a small program that asks the user how many asterisks it should print out. The user responds with a number then the program prints that number of asterisks. Then the program asks the user if it should start over. Can you please assist me with while and for loops?
1 2 3 4 5 6 7 8 9 10
{
cout << "How many asterisk do you want me to print?";
cin >> number
cout << "Do you want to go again? (Y/N) ";
cin >> again;
}while (again == 'Y' || again == 'y');