• + 0 comments

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