Computer Science, asked by shwetasharma4359, 6 months ago

factorial
.
is. WAP to enter a number and check and peuint if it is a
perfect number or not
A
perfect number is the one which is equal to the sum of all its factor
including the number itself using do while loop​

Answers

Answered by Anonymous
4

Answer:

A number is considered as perfect number when it satisfies the below conditions. ... Please refer below C program to check whether given number is perfect number or not. C ... printf("Please enter a number to check perfect number\n");.

Explanation:

Answered by SuryaTrinath
0

Answer:

A number is a perfect number if is equal to sum of its proper divisors, that is, sum of its positive divisors excluding the number itself. Write a function to check if a given number is perfect or not.

Examples:

Input: n = 15

Output: false

Divisors of 15 are 1, 3 and 5. Sum of

divisors is 9 which is not equal to 15.

Input: n = 6

Output: true

Divisors of 6 are 1, 2 and 3. Sum of

divisors is 6.

  • plz subscribe to my YouTube channel MEDICUS GNARITAS
  • plz follow me
  • plz mark me as Brainlist

Similar questions