Question: 3. Write a C++ program that prompts the user to enter two positive integers. Validate the input. The program prints a horizontal bar of X

 3. Write a C++ program that prompts the user to enter

3. Write a C++ program that prompts the user to enter two positive integers. Validate the input. The program prints a horizontal bar of X 's whose length is the smaller of the two integers. If the two integers are equal, then use either integer. Sample run of the program: Enter two positive integers: 42 XX Sample run of the program: Enter two positive integers: 45 XXXX

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!