Write an algorithmthat prints perfect numbers from 1 to n.To determine if a number is per开发者_Go百科fect add up all the factors of the number that are less than the number. If the sum is equal to th
I need to write a C program to find the Perfect Number.. main() { int n=1000,sum = 0; for(int num = 1; num <= n; num++)
the problem is : \"Write a function to find out if a number is a prime or perfect number.\" so far i have worked on the perfect part first and this is what i have:
I need some help revising this. It keeps only displaying 0s as the temp. Thank you. // A program to determine whether the input number is a perfect number