Write a program that determines Perfect Numbers

Write a program that determines Perfect Numbers. A perfect number is an integer, such that the sum of all the distinct factors in the number, excluding the number itself, add up to the original number. Perfect numbers are not very common. Examples of perfect numbers are: 6 = 1 + 2 + 3 28 = 1 + 2 + 4 + 7 + 14 496 = 1 + 2 + 4 + 8 + 16 + 31 + 62 + 124 + 248

WE ALL KNOW CLASSWORK IS BORING. THUS, OUR ESSAY HELP SERVICE EXISTS TO HELP STUDENTS WHO ARE OVERWHELMED WITH STUDIES. ORDER YOUR CUSTOM PAPER FOR 20% DISCOUNT. USE CODE SAVE20