#include<stdio.h>
#include<conio.h>
#include<iostream.h>
void main()
{
int digit;
clrscr();
cout<<"Enter any digit = ";
cin>>digit;
switch(digit)
{
case 0:
cout<<"Zero";
break;
case 1:
cout<<"One";
break;
case 2:
cout<<"Two";
break;
case 3:
cout<<"Three";
break;
case 4:
cout<<"Four";
break;
case 5:
cout<<"Five";
break;
case 6:
cout<<"Six";
break;
case 7:
cout<<"Seven";
break;
case 8:
cout<<"Eight";
break;
case 9:
cout<<"Nine";
break;
default:
cout<<"Not a single, Please enter single digit";
}
getch();
}
///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........