help…

Home Forums C Programming help…

This topic contains 2 replies, has 2 voices, and was last updated by  kokila 9 years, 12 months ago.

  • Author
    Posts
  • #2117

    kokila
    Member

    im trying my best to solve this.. but it is so confusing…im a Com.Sci freshman..Write a program that accepts a number and outputs its equivalent in word.

    For example:
    Input: 1380
    Output: One thousand three hundred eighty

    Limit the number to be inputted from 0 to 3000.plss……tnx in advance!!

  • #3408

    Humayan
    Member

    Wow tedious! I would just use a series of conditional statements:

     
    and so on for the “hundreds” position the “ty’s” ( twenty , thirty …. ) the teens ( 19 , 18 , 17 ….. ) and singles ( 9 , 8 , 7 ….. ) . Not a difficult program , just a pain to write ……..

  • #3409

    kokila
    Member
    Winkarigato gozaimasu!!Wink

    it really help me!!…

    tnx again!!

You must be logged in to reply to this topic.