wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Specific number" Watch "Specific number" New topic
Author

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
 
wood burning stoves
 
subject: Specific number