You are viewing a single comment's thread. Return to all comments →
int main(){ int n; printf("Input a number:"); scanf("%d",&n); if (n==1) printf("one"); else if(n==2) printf("two"); else if(n==3) printf("three"); else if(n==4) printf("four"); else if(n==5) printf("five"); else if(n==6) printf("six"); else if(n==7) printf("seven"); else if(n==8) printf("eight"); else if(n==9) printf("nine");
else printf("this number greater then Nine"); return 0; }
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 →
include
int main(){ int n; printf("Input a number:"); scanf("%d",&n); if (n==1) printf("one"); else if(n==2) printf("two"); else if(n==3) printf("three"); else if(n==4) printf("four"); else if(n==5) printf("five"); else if(n==6) printf("six"); else if(n==7) printf("seven"); else if(n==8) printf("eight"); else if(n==9) printf("nine");
else printf("this number greater then Nine"); return 0; }