Question: c++ ---------------- Question 4 Write a program that prompts the user for a character and the number N of characters to be displayed. The program

c++ ----------------c++ ---------------- Question 4 Write a program that prompts the user for

Question 4 Write a program that prompts the user for a character and the number N of characters to be displayed. The program then uses a while loop to display the character entered by the user N times in the same line. Your program should display an error message is the value of N is less than or equal 0 Example Input Corresponding output Enter a character i # Enter a height 5

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!