Results 1 to 2 of 2
  1. #1
    joshsmith3400 is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default help writing a java code

    I am new to java and i can't figure out a code to do this..

    Write a program that reads an integer with three digits and adds all the digits in the integer. For example, for the integer 102, the sum of its digits is 3.


    any help would be much appreciated! thanks so much

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,301
    Rep Power
    20

    Default

    1. Wrong forum, the lobby isn't for technical questions.
    2. A forum isn't a code mill. Recommended reading: How To Ask Questions The Smart Way

    db

Similar Threads

  1. Need help on writing Java source code
    By k4it0xtr3me in forum New To Java
    Replies: 29
    Last Post: 01-24-2011, 03:56 PM
  2. Writing code seamlessly...
    By JoshNerd557 in forum New To Java
    Replies: 2
    Last Post: 12-07-2010, 01:51 AM
  3. writing a countdown using java
    By stevie171 in forum New To Java
    Replies: 7
    Last Post: 12-01-2010, 04:52 PM
  4. Replies: 7
    Last Post: 11-04-2010, 04:10 PM
  5. Is this the right way of writing html code in java??
    By raju.i in forum Advanced Java
    Replies: 1
    Last Post: 05-18-2010, 08:05 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
  •