Writing a program that loops HELP im lost

April 11, 2011 at 12:43:01
Specs: Windows 7
I really need help on this program. I have been trying to do it for a couple of days but my program does not seem to be working out. Please help me


A prefect number is a positive integer that is equal to the sum of its proper divisors. A proper divisor is a positive integer other than the number itself that divide the number evenly (i.e. no remainder). For example, 6 is a perfect number because the sum of its proper divisors 1, 2, and 3 is equal to 6. Eight is not a perfect number because 1 + 2 + 4 does not equal 8. Write a program (Java/C++) that accepts a positive integer and determines whether the number is perfect also display all proper divisors of the number try a number between 20 and 30 and another number between 490 and 500.


See More: Writing a program that loops HELP im lost

Report •


#1
April 11, 2011 at 22:11:42
(Java/C++)
Wow, two very different languages, and they let you pick, eh?

I have been trying to do it for a couple of days but my program does not seem to be working out.
And where is this program of yours?

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question