| sunshine3299
|
10
|
 |
|
04-05-2005 02:12 AM ET (US)
|
|
hi.. i'm a student here... having a problem in programming question.. hope u all cal help me...plz..
Question:
1)An integer number is said to be a perfect number if its factors, including 1 (but not the number itself), sum to the number. For example, 6 is perfect number, because 6 = 1+2+3. Write a method Perfect that determines whether parameter number is a perfect number. Use this method to display all perfect numbers between 1 and 100.
2)Write a method Multiple that determines, for a pair of integers, whether the second integer is a multiple of the first. The method should take two integer arguments and return true if the second is a multiple of the first and false otherwise. Thanks for helping!
|