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