my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Specific number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Specific number" Watch "Specific number" New topic

Specific number

apollo abel
Ranch Hand

Joined: Mar 31, 2006
Posts: 32
Hi, i have written a program, i can tell which numbers are perfect, abundant or deficient. i can tell the percentages, and i can tell how many of these numbers i have.
However, i don't know how to get an specific number, for example, if i enter 500, there are 3 perfect numbers, 6, 28, and 496. i need to be able to printout the actual numbers.

Any ideas on how to get an specific number??
thanks in advance.
apollo abel
Ranch Hand

Joined: Mar 31, 2006
Posts: 32
NVM i figured out
Don't get me started about those stupid light bulbs.
subject: Specific number
Similar Threads
Percentage issue
A problem
Odd numbers
Project Euler : Problem 23
Abundant Numbers