You are viewing a single comment's thread. Return to all comments →
if(n==1) printf("one\n"); if(n==2) printf("two\n"); if(n==3) printf("three\n"); if(n==4) printf("four\n"); if(n==5) printf("five\n"); if(n==6) printf("six\n"); if(n==7) printf("seven\n"); if(n==8) printf("eight\n"); if(n>9) printf("Greater than 9\n");
Seems like cookies are disabled on this browser, please enable them to open this website
Conditional Statements in C
You are viewing a single comment's thread. Return to all comments →
if(n==1) printf("one\n"); if(n==2) printf("two\n"); if(n==3) printf("three\n"); if(n==4) printf("four\n"); if(n==5) printf("five\n"); if(n==6) printf("six\n"); if(n==7) printf("seven\n"); if(n==8) printf("eight\n"); if(n>9) printf("Greater than 9\n");