Question: I'm trying to write a program perfectNumber.c that asks user repeatedly for a non-negative integer, and stops when the number is zero. For each positive
I'm trying to write a program perfectNumber.c that asks user repeatedly for a non-negative integer, and stops when the number is zero. For each positive integer entered, your program is to check whether it is a perfect number or not.
Your program should have a function is_perfect(int) that returns 1 if the argument is a perfect number, or 0 otherwise.
Whats wrong with my code?

/** k x 5 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
