You are viewing a single comment's thread. Return to all comments →
Yours is obviously better.
cin >> start >> end; for(int i = start; i <= end; i++){ (i > 9)?((i%2) == 0)? printf("even\n"):printf("odd\n"):(i > 8) ? printf("nine\n"):(i > 7) ? printf("eight\n"):(i > 6)? printf("seven\n"):(i > 5)? printf("six\n"):(i > 4)? printf("five\n"):(i > 3)? printf("four\n"):(i > 2)? printf("three\n"):(i > 1)? printf("two\n"):printf("one\n"); }
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 →
Yours is obviously better.