Jump to content

*!!! HELP: I need a C program that converts words into numbers and vice versa !!!*

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
james24587

james24587

    Newbie

  • Members
  • Pip
  • 1 posts
Hi guys,

HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :confused:

Can anyone send me source code of a single C program that converts words into numbers and numbers into words, eg:

Input: 156
Output: one hundred fifty six

Input: twenty two thousand eighty nine
Output: 22089

I've searched for ages and can't find any source code that does this!


Cheers,
James

#2
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
I don't think anyone would make such program for you. Why don't you start, and if you get problems, then return, describe it, and then we'll help you.

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I'll give you a hint:
156 / 100 % 10 = 1
156 / 10 % 10 = 5
156 / 1 % 10 = 6
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog