You are viewing a single comment's thread. Return to all comments →
Good Code
#include<stdio.h> int main() { int n,b; scanf("%d", &n); scanf("%d", &b); for (int i = n;i <= b; i++ ){ printf((i==1)?"one": (i==2)?"two":(i==3)?"three" :(i==4)?"four":(i==5)?"five":(i==6)?"six" :(i==7)?"seven":(i==8)?"eight":(i==9)?"nine" : (i%2==0)?"even":"odd"); printf("\n"); } return 0; }
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 →
Good Code