Question:

Turbo c numbers to words using switch statement?

by  |  earlier

0 LIKES UnLike

hmm.. did you know the Turbo C code of conversion of Number to Word..

for example when i type 3 the result will be three...

1 up to 3000 using switch statement

limits only 70 lines

(first input a number then break it into unit digits ..

say if the number inputed is 456 then split it into 4, 5 & 6

now multiply 4 with 100, 5 with 10 and 6 with 1, to get 400, 50 & 6

now using switch case u can have the spelling of that digit..

1st switchcase for the spellings of one thousand, two thousand ...ten thousand.

2nd switchcase for the spellings of one hundred, two hundred ...nine hundred.

3rd switchcase for the spellings of twenty, thirty, fourty....ninty.

4th switchcase for the spellings of one two, three..nine.

5th switchcase for special case spellings of eleven, twelve .. ninteen

thats it, sorry i cant help u more then that .. now do it urself

or send me message & ur code and i will correct ur code or according to ur work on code i will decide if i can give u the full exact code .. but i want u to try it first)

please help me..

i really needed your help!

 Tags:

   Report

1 ANSWERS


  1. Thank you, I will try!

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.