Results 1 to 3 of 3
  1. #1
    j3sr is offline Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Question Express 240 as'Two hundred and forty'

    Can anyone tell me how to express 240 as'Two hundred and forty' using core java or c/c++.Do we have any built in function or we need to perform the normal way like accepting he n as array then by finding the lenth and based on it convert one by one t corresspondng string and concatinate.Do not know whether it works.plz help

  2. #2
    Spike_CT is offline Member
    Join Date
    Jan 2010
    Posts
    14
    Rep Power
    0

    Default

    You need to build your own function.

    An comprehensive tutorial can be found here:

    http://www.blackwasp.co.uk/NumberToWords.aspx

    Translating C# code to Java shouldn't be that hard
    Last edited by Spike_CT; 01-27-2010 at 06:12 PM.

  3. #3
    j3sr is offline Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

Similar Threads

  1. Replies: 4
    Last Post: 09-07-2010, 06:51 AM
  2. SQL server express edition connection
    By pbaudru in forum JDBC
    Replies: 1
    Last Post: 01-19-2010, 09:59 AM
  3. Replies: 3
    Last Post: 11-03-2007, 01:58 PM
  4. how to properly express adding...
    By paul in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •