Urgent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tejucb
    New Member
    • Nov 2006
    • 1

    Urgent

    hi,
    I am Teju
    can any body solve thte following problams
    plz send me immidiatly [ I need answers within two hours]




    1.write a C- program that converts one base nomber [decimal,octal,b inary& hexadecimal] to other base

    2.write a C- program that accepts nombers[ like 1, 45 ,5436,879600]as input from user and should prints in words.
    ex:- input-600543
    output-six lacs five hundred fourty three
  • sowmyth
    New Member
    • Oct 2006
    • 19

    #2
    i think i can help with the second program ,i got something similar like that for my assingment (it was upto maximum 3 digit number).
    *ask the user how many digit number does he want to input
    *scan the number using an array
    *declare something like char *n[10]={"one","two",. ............... ......,"nine"},
    *for number's from 10....19,
    20,30....90,etc till depending on the no:of digits in the number required
    and each time checking the input number one by one with those char arrays
    and printing the result.

    Comment

    Working...