Question: Write C program which takes a positive integer as input and decides, using the while loop, whether or not the input number is perfect. Positive
Write C program which takes a positive integer as input and decides, using the while loop, whether or not the input number is perfect. Positive integer n is said to be perfect if the sum of positive divisors of n equals 2n. For example, 6 is perfect number, since positive divisors of 6 are 1, 2, 3 and 6, and their sum is 1 + 2 + 3 + 6 = 12 = 2 * 6.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
