Perfect NumBer.
|
04-02-2016, 11:26 AM
Post: #1
|
|||
|
|||
Perfect NumBer.
Hi,
I submit a new little routine wich give if a number is perfect, ie equal to it's propers divisors : 6=1+2+3, 1+2+3=6 it is perfect number. 8=1+2+4, 1+2+4=7 it is not. 28=1+2+4+7+14 it is. And so on. Code:
Specials thanks to Didier and Dieter for good programming ! Good week-end. Gérard. |
|||
04-02-2016, 11:27 AM
Post: #2
|
|||
|
|||
RE: Perfect NumBer.
If you see the number entered then it is a perfect number.
If you see zero it is not. Gérard. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)