Question
Write a program in C language? An integer number is said to be a perfect number if the sum ofits factors, including 1 (but not the number itself), isequal to the number. For example, 6 is a perfect number, because 6 =1 + 2 + 3. Write a function perfect that determines whetherparameter number is a perfect number. Use this function in a programthat determines and prints all the perfect numbers between 1 and 1000. Print the factors of each perfect number to confirmthat the number is indeed perfect. Write a program in C language? An integer number is said to be a perfect number if the sum ofits factors, including 1 (but not the number itself), isequal to the number. For example, 6 is a perfect number, because 6 =1 + 2 + 3. Write a function perfect that determines whetherparameter number is a perfect number. Use this function in a programthat determines and prints all the perfect numbers between 1 and 1000. Print the factors of each perfect number to confirmthat the number is indeed perfect.
Explanation / Answer
please rate - thanks #include #include void factor(int); int perfect(int); int main() {int i,yes; printf("The perfect numbers between 1 and 1000are: number factors "); for(i=1;i