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