Welcome to Dream.In.Code
Getting Help is Easy!

Join 105,757 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,720 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Equivalent Word

 
Reply to this topicStart new topic

Equivalent Word, What is the best way?

greendae
post 6 May, 2008 - 09:15 AM
Post #1


New D.I.C Head

*
Joined: 6 May, 2008
Posts: 1

I want to make a program that input can 3 digit and their equivalent to english word
Ex. 1 equivalent to One
25 equivqlent to Twentyfive
279 equivalent to Two Hundred Seventynine
User is offlineProfile CardPM

Go to the top of the page


KYA
post 7 May, 2008 - 06:35 PM
Post #2


#include <nerd.h>

Group Icon
Joined: 14 Sep, 2007
Posts: 2,432



Thanked 13 times

Dream Kudos: 1150
My Contributions


Read in input
Determine slots (tens, hundreds, etc...)
Define a function that can add suffixes/placeholders
Apply placeholder names (hundreds, etc...)
Output result


Hooray for ambiguity!
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/21/08 12:52PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month