Write a program that in a loop prompts the user to enter an integer, say X, in the range 1 .. 26 and then prints the first X capital letters in reverse order. The loop terminates when X is less than 1 or greater than 26.
Here is a sample run of your program:
Enter value for X: 5 EDCBA Enter value for X: 9 IHGFEDCBA Enter value for X: 30 Good Bye