You are viewing a single comment's thread. Return to all comments →
int main() { int a, b; scanf("%d\n%d", &a, &b); char* eng_rep[] = {"zero", "one", "two" , "three", "four", "five", "six" , "seven", "eight", "nine"};
for ( int n = a; n <= b; n++){ if(n>= 1 && n <=9) { puts(eng_rep[n]); } else if ( n > 9){ if(n%2 == 0) { printf("even \n"); }else if(n%2 != 0) { printf("odd \n"); } } } // Complete the code. 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 →
include
include
include
include
int main() { int a, b; scanf("%d\n%d", &a, &b); char* eng_rep[] = {"zero", "one", "two" , "three", "four", "five", "six" , "seven", "eight", "nine"};
}