First two input examples produce correct output.

Abdullah asked 1 year ago

the third input example produces wrong answer. code:


int main(){ int a[9],i; for(i=0;i<9;i++) scanf("%d",&a[i]); if(a[8]==1) printf("Dasher\n"); if(a[8]==2) printf("Dancer\n"); if(a[8]==3) printf("Prancer\n"); if(a[8]==4) printf("Vixen\n"); if(a[8]==5) printf("Comet\n"); if(a[8]==6) printf("Cupid\n"); if(a[8]==7) printf("Donner\n"); if(a[8]==8) printf("Blitzen\n"); if(a[8]==9) printf("Rudolph\n"); }

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.