filmov
tv
Program To Check Perfect Number In C [Tutorial] | C programming

Показать описание
Program To Check Perfect Number In C [Tutorial] | C programming
Perfect Number:
The sum of divisors of a number is equal to that number.
e.g :
Consider a Number 6.As 6 is divisible by 1,2 and 3.
So,
sum of divisors = 1+2+3=6
and
Number=6
As
Sum of divisors = Number
6 = 6
Now we can say that 6 is a perfect number.
Perfect Number:
The sum of divisors of a number is equal to that number.
e.g :
Consider a Number 6.As 6 is divisible by 1,2 and 3.
So,
sum of divisors = 1+2+3=6
and
Number=6
As
Sum of divisors = Number
6 = 6
Now we can say that 6 is a perfect number.