THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

Check perfect number

Threads: Write test program 1 there is the perfect number does not? Perfect number is a positive integer equal the sum of the positive divisors 2 times it. example No. 6 the Convention 1, 2, 3, 6 and total 1 + 2 + 3 + 6 = 12 (equal 2 time 6).
Input: A single integer.
Output: “TRUE” if that's the perfect number, “FALSE” otherwise
For example:

input:
6
output:
TRUE

You are not logged in? Log in to Submit Now!

5 Comments

Add a Comment