Computer Science, asked by danishauh9074, 1 year ago

An abundant number is a number for which the sum of its proper divisors(excluding number itself) is greater than the original number.Write a program to input a number and check whether it's an abundant number or not.
Sample input:12
Sample output:
It's proper divisors are 1,2,3,4,6
Sum= 1+2+3+4+6=16
Hence 12 is an abundant number
Guys plz solve this

Answers

Answered by saiphysiocare1
1

Explanation:

In an abundant number, the sum of its proper divisors (i.e., including 1 but excluding the number itself) is greater than the number; in a deficient number, the sum of its proper divisors is less than the number.

Please mark me as brainliest if it helps and follow me and I will also follow you back

Similar questions