Conditional Statements in C

  • + 0 comments
    char *word[] = {"one","two","three","four","five","six","seven","eight","nine"};
        // Write Your Code Here
        if(n>0 && n<=9){
        printf("%s\n", word[n-1]);
        }
        else{
        printf("Greater than 9");
        }
        return 0;