We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
#include<stdio.h>staticconstchar*strings[]={"one","two","three","four","five","six","seven","eight","nine"};intmain(){intn=0;if(scanf("%d",&n)<1)return1;if(n>=1&&n<=9)printf("%s",strings[n-1]);elseprintf("Greater than 9");return0;}
Conditional Statements in C
You are viewing a single comment's thread. Return to all comments →