You are viewing a single comment's thread. Return to all 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"); }
Seems like cookies are disabled on this browser, please enable them to open this website
For Loop in C
You are viewing a single comment's thread. Return to all comments →