Nagendra C.

asked • 12/26/22

labelling numbers

Write a function with the name show_numbers that takes a number N and print all the numbers from 0 to N with a label to identify the even and odd numbers as shown below

0 EVEN

1 ODD

2 EVEN

3 ODD

Input The input will be a single line containing a positive integer.

Output The output should be N1 lines containing a number with a label in each line.

Explanation For example, if the given input is 3,

the output should be 4 lines as shown below

0 EVEN

1 ODD

2 EVEN

3 ODD


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.