btw, this was solved but for some reason the comments are deleted. you can lock this thread admins :)
2020-12-15 16:42
In number theory, a perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. For instance, 6 has divisors 1, 2 and 3, and 1 + 2 + 3 = 6, so 6 is a perfect number.
2020-12-15 17:09
int main()
{
int i = 1, Number, Sum = 0 ;
printf("\n Please Enter any number \n") ;
scanf("%d", &Number) ;
while( i < Number )
{
if(Number % i == 0)
Sum = Sum + i ;
i++;
}
if (Sum == Number)
printf("\n %d is a Perfect Number", Number) ;
else
printf("\n%d is not the Perfect Number", Number) ;
return 0 ;
}
2020-12-15 17:16
There are a lot of web site which has explaination of perfect number topic.
2020-12-15 17:23
Just google perfect number program in c
Or perfect number flowchart and implement yourself
2020-12-15 17:38