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