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 Android Security Essentials Live Lessons this week in the Android 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
It is sorta covered in the JavaRanch Style Guide.
subject: Specific number
Similar Threads
Percentage issue
A problem
Odd numbers
Abundant Numbers
Project Euler : Problem 23