You are viewing a single comment's thread. Return to all comments →
Unnecessarily making it so long and unreadable.
string words[]={"one","two","three","four","five","six","seven","eight","nine"}; for(int n=a;n<=b;n++) { if(n>9) if(n%2==0) printf("even\n"); else printf("odd\n"); else printf("%s\n",words[n-1].c_str()); }
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 →
Unnecessarily making it so long and unreadable.