Click here to Skip to main content
15,898,745 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
i can't convert the negative numbers to word in c.
like
input= -123046
output = minus one lac twenty three thousand forty six.

What I have tried:

i tried Array string and function.
Posted
Updated 3-Sep-18 22:40pm

 
Share this answer
 
This is such a common homework problem that I wrote a tip on it some years ago: Converting numbers to the word equivalent. [^] - it's in C#, but the C code would use the same principles, and much the same syntax.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900