You are viewing a single comment's thread. Return to all comments →
int main() {
int i, j; cin>>i>>j; string words[11] = {"even", "one", "two", "three", "four", "five", "six","seven","eight","nine","odd"}; for(int q = i; q<=j;q++){ cout<<((q <= 9) ? words[q] : ((q%2) ? words[10] : words[0]))<<endl; } return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
For Loop
You are viewing a single comment's thread. Return to all comments →
int main() {
}