help…

Home Forums C Programming help…

Viewing 2 reply threads
  • Author
    Posts
    • #2117
      kokila
      Participant

      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
      Participant

      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
      Participant
      Winkarigato gozaimasu!!Wink

      it really help me!!…

      tnx again!!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.