Input Format
The first line contains an integer, .
The seond line contains an integer, .
Constraints
Output Format
Print the appropriate english representation,even, or odd, based on the conditions described in the 'task' section.

hackerrank for loop in c programming problem solution

For loop in C problem solution | HackerRank

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>

int main() {

    int a, b;
    char* represent[10] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
    scanf("%d\n%d", &a, &b);
    for(int i = a; i <= b; i++) {
        
        if(i > 9) {
            if(i % 2 == 0)
                printf("even\n");
            else printf("odd\n");
        }
        else {
            printf("%s\n", represent[i]);
        }
    }
    return 0;
}