Re: newbie

From: Daniel T. (postmaster_at_earthlink.net)
Date: 11/23/04


Date: Tue, 23 Nov 2004 03:39:16 GMT


"Danny Gopie" <ouygiytf@jhgvkuy.nl> wrote:

> Hello
>
> i want to write a program that reads an integer between 0 and 1000 and
> summarizes all the digits in the integer. For example, if an integer is 932,
> the sum of all the digita is 14.
>
> Does anyone knows how to do this?

You just did it, so I suspect you know how. The first step is to come up
with an algorithm, write us how you did it.



Relevant Pages

  • Re: newbie
    ... > summarizes all the digits in the integer. ... > the sum of all the digita is 14. ...
    (comp.lang.java)
  • Re: newbie
    ... > summarizes all the digits in the integer. ... > the sum of all the digita is 14. ...
    (comp.lang.java.gui)
  • Re: newbie
    ... > summarizes all the digits in the integer. ... > the sum of all the digita is 14. ...
    (comp.lang.java.programmer)
  • Re: newbie
    ... > summarizes all the digits in the integer. ... > the sum of all the digita is 14. ...
    (comp.lang.java)
  • every number has its own significance.....
    ... 18 is the only number that is twice the sum of its digits. ... 21 is the smallest number of distinct squares needed to tile a square. ... 26 is the only number to be directly between a square and a cube. ... 27 is the largest number that is the sum of the digits of its cube. ...
    (sci.crypt)