Question: Assume that a user inputs two integers, a and b . Your task is to print the English representation, in lowercase, for each integer in

Assume that a user inputs two integers, a and b. Your task is to print the English representation, in lowercase, for each integer in the interval (a, b). Follow these rules:
* If the integer is between 1 and 9(inclusive), print its English representation. For example, print one" for 1, "two" for 2, and so on.
* If the integer is greater than 5 and it is an even number, print "even".
* If the integer is greater than 5 and it is an odd number, print "odd".
Your program should repeatedly take inputs for a and b until -1 is entered for either a or b. For each input pair, execute the program and print the output.
Sample Input : 37
Sample Output: three four five even odd
Draw the flowchart of the solution.

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!