ok sir, thank you.
#include<stdio.h>
#include <stdlib.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>
void pw(long,char[]);
char *one[]={" "," One"," Two"," Three"," Four"," Five"," Six",
" Seven","Eight"," Nine"," Ten"," Eleven"," Twelve"," Thirteen"," Fourteen",
"Fifteen"," Sixteen"," Seventeen"," Eighteen"," Nineteen"};
char *ten[]={" "," "," twenty"," Thirty"," Forty"," Fifty"," Sixty",
"Seventy"," Eighty"," Ninety"};
void main()
{
long n;
char *num;
char* c;
clrscr();
printf("Enter any 9 digit no: ");
gets(num);
while( (c=strchr(num,',')) > 0)
{
memmove(c,c+1,strlen(c-1));
}
n=atol(num);
if(n<=0)
printf("Enter numbers greater than 0");
else
{
pw((n/1000000000),"Billion");
pw(((n/100000000)%100),"Hundred Million");
pw(((n/1000000)%100),"Million");
pw(((n/100000)%10),"Hundred thousand");
pw(((n/1000)%100),"Thousand");
pw(((n/100)%10),"Hundred");
pw((n%100)," ");
}
getch();
//return 0;
}
void pw(long n,char ch[])
{
(n>19)?printf("%s %s ",ten[n/10],one[n%10]):printf("%s ",one[n]);
if(n)printf("%s ",ch);
}