Question: need help writing program in c++ (L1) Write a code fragment that prompts the user for a string and an int, and reads the values

need help writing program in c++ need help writing program in c++ (L1) Write a code fragment that

(L1) Write a code fragment that prompts the user for a string and an int, and reads the values from the keyboard. The string should be output int number of times to the display. A while loop must be used for this question. Do not write a complete program, just the code required. You may assume that all necessary libraries have been included, and using namespace std; has been declared. Example 5./a.out Please enter a string and a number: Hello 5 Hello Hello Hello Hello Hello Blue - program output Pink - program loop output Red - user input Failure to use the specified loop for this question will result in zero points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!