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