C Program To Check Perfect Number or Not, using For loop
Satish B
https://technotip.com/7626/c-program-to-find-perfect-number-using-for-loop/
Lets write a C program to check if user entered number is a perfect number or not, using for loop.
Perfect Number: A number is called perfect number if sum of its divisors(except the number itself) is equal to the number.
For Example: If the user entered number is 28. The numbers which perfectly divide 28 are 1, 2, 4, 7, 14, 28. Leave 28 and add all other numbers. i.e., 1 + 2 + 4 + 7 + 14 = 28. So the entered number and the sum are equal. So 28 is a perfect number.
C Programming Interview / Viva Q&A List http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=i1bAVHYOOyU
9771059 Bytes