WAP to check if the given number is
perfect
number or not.
Answers
Answered by
4
Answer:
I am not able to know your question but I will try..
Explanation:
Logic to check Perfect number
Store it in some variable say num . Initialize another variable to store sum of proper positive divisors, say sum = 0 . Run a loop from 1 to num/2 , increment 1 in each iteration. The loop structure should look like for(i=1; i<=num/2; i++) .
Similar questions