To convert the given number (1 to 10) to characters

Program:

#include<stdio.h>
#include<conio.h>
void main()
{
    int n;
    clrscr();
    printf("Enter a number <1 to 10> : ");
    scanf("%d", &n);
    switch(n)
    {
        case 1 :
        printf("\nONE");
        break;
        case 2 :
        printf("\nTWO");
        break;
        case 3 :
        printf("\nTHREE");
        break;
        case 4 :
        printf("\nFOUR");
        break;
        case 5 :
        printf("\nFIVE");
        break;
        case 6 :
        printf("\nSIX");
        break;
        case 7 :
        printf("\nSEVEN");
        break;
        case 8 :
        printf("\nEIGHT");
        break;
        case 9 :
        printf("\nNINE");
        break;
        case 10 :
        printf("\nTEN");
        break;
        default :
        printf("\nInvalid Input.");
    }
    getch() ;
}

Output:

Enter a number <1 to 10> : 7
SEVEN