You are viewing a single comment's thread. Return to all comments →
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int a, b; scanf("%d\n%d", &a, &b); char *if_else_vector[11] = {"even", "odd", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}; for(;a <= b; ++a) { if(a > 9) printf("%s\n", if_else_vector[a & 0x1]); else printf("%s\n", if_else_vector[a+1]); } 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 →