Computer Science, asked by Srijan07, 6 months ago

Write a program to check whether the number is perfect or not using do-while loop. (A number is said to be perfect if sum of all its factors (excluding itself) is equal to the number.) in java

Answers

Answered by user0390
2

Answer:

Any number can be a Java Perfect Number if the sum of its positive divisors excluding the number itself is equal to that number. For example, 28 is a perfect number because 28 is divisible by 1, 2, 4, 7, 14 and 28 and the sum of these values is 1 + 2 + 4 + 7 + 14 = 28. Remember, we have to exclude the number itself.

Explanation:

HOPES THIS HELPS..

If It Helps Follow

Like

Similar questions