How do you check if the number is perfect or not using function in C?

               To check if the number is perfect or not using function in C


perfect number is equal to the sum of all divisor excluding number itself . 6 is the small perfect number because the 6 is divisible by 1 , 2 , 3 and also 6 but theoretically we can not accept the excluding number itself. so the number is 1,2,3 and the sum of these number is equal to 6. So we can say that the 6 number is absolutely perfect number.

Example:

Output of the following code is :

Comments

Popular posts from this blog

proassignment help backlink data index 41

Programming shark backlink data index 67

programming shark backink data index 31