Write a program:
1. Ask the user for two positive integers between 2 and 10. (Input Validation: If the user enters other
numbers , you should display error message and ask the user to enter again.)
2. Use these two integers for the length and width of a rectangle. (If the numbers are different, the
larger of the two numbers should be used for the length and the smaller for the width.
3. Display a rectangle on the screen using the character ‘X’.
4. Ask the user whether he want to draw another rectangle. If yes, do 1-3 again. Otherwise, stop the
program
Input: two integers (between 2 and 10)
user’s choice(Y or N)