• + 0 comments
    char representation[9][10] = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
        for(int i=0; a+i <= b; i++) {
            printf("%s\n", a+i<=9 ? representation[a+i-1] : (a+i) % 2 ? "odd" : "even");
        }