Detailed Description:
The program should prompt the user for one character option (either ‘e’, ‘E’ or ‘o’, ‘O’).
It should respond in the following ways:
- If user enters character option ‘e’ or ‘E’ then it should display the even numbers from 1 to 50.
- If user enters character option ‘o’ or ‘O’ then it should display the odd numbers from 1 to 50.
Sample output of the program:
If user enters ‘e’ then it displays the even numbers from 1 to 50.