# include <iostream.h>
# include<conio.h>
void main( )
{
int n;
char s[10][6]={ "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};
cout<<"\n Enter 3 digit number : ";
cin >> n;
cout<< "\n The Number is : " <<n ;
cout<<"\n"<<s[n/100];
n = n % 100;
cout<<" "<<s[n/10];
n = n % 10;
cout<<" "<<s[n/1];
getch( );
}
0 comments:
Post a Comment