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
(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
Get step-by-step solutions from verified subject matter experts
