WAP to check and print input number is perfect number eg. 6=factors of 6=1, 2, 3
=1+2+3=6
28=factors of 28=1, 2, 4,7,14
=1+2+4+7+14=28
Published By : Sunita Chhetry
WAP to check and print input number is perfect number eg. 6=factors of 6=1, 2, 3
=1+2+3=6
28=factors of 28=1, 2, 4,7,14
=1+2+4+7+14=28