#CCBCHBA0000043. For Loop in C (For Loop in C)
For Loop in C (For Loop in C)
For Loop in C
Source: HackerRank
Version: Phuoc Hung OJ Extended
Problem Statement
For each i from a through b inclusive, print its lowercase English word if i<=9; otherwise print even or odd.
Input
Integers a,b, 1<=a<=b<=100 (PHOJ Extended limit).
Output
One output line per integer: one...nine, even or odd.
Subtasks
- Subtask 1 (20%): 1<=a<=b<=9.
- Subtask 2 (30%): 1<=a<=b<=20.
- Subtask 3 (50%): 1<=a<=b<=100.
Examples
Example 1
Input
8
11
Output
eight
nine
even
odd
Explanation
8 and 9 become words; 10/11 become even/odd.
Example 2
Input
1
1
Output
one
Explanation
A one-element range.