#include <stdio.h> void main() { int num; printf("Enter a number: ") ; scanf(" %d", & num) ; if(num==1) { printf (" one ") ; } if(num==2) { printf (" two") ; } if(num==3) { printf (" Three") ; } if(num==4) { printf ("four") ; } if(num==5) { printf(" five ") ; } if(num==6) { printf (" six ") ; } if(num==7) { printf (" Seven ") ; } if(num==8) { printf (" eight") ; } if(num==9) { printf (" nine ") ; } } |
Enter a number : 5 five