sir
i want to convert number in word format like 456 into "four hundread fifty six" .plz help me to make this program.my id is
thank you
atul8486
0
Newbie Poster
Recommended Answers
Jump to PostStart with this
char *Units [] = {"One","Two","Three","Four","Five","Six","Seven","Eight","Nine"}; char *Teen [] = {"Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"}; char *Tens [] = {"Ten","Twenty","Thirty","Fourty","Fifty","Sixty","Seventy","Eighty","Ninety"};
After you get your input cycle through all the characters and determine which string corresponds to the numeric input.
I already have this program done in it's entirety …
All 3 Replies
xfruan
0
Newbie Poster
Tight_Coder_Ex
17
Posting Whiz in Training
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.