can you help me...

This is a discussion on can you help me... within the C Programming forums, part of the General Programming Boards category; << split from http://cboard.cprogramming.com/showthread.php?t=96559 >> i was only a 1st year studnt of it. our teacher give this problem. "write ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    1

    Post can you help me...

    << split from Using strcmp, char variable changes value? >>
    i was only a 1st year studnt of it. our teacher give this problem.

    "write a program that converts an integer into word."

    sample output: enter number:
    1234
    one thousand three hundred four.
    Last edited by Salem; 12-06-2007 at 04:29 AM. Reason: Split thread and remove horrid colours

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,590
    So can you use say /10 and &#37;10 to extract each digit from the number?

    Show us what you can do, which might be heading in the right direction of an answer (as far as you can tell), then we'll help.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21