Abundant number In Python
An abundant number is a number for which the sum of its proper divisors is greater than the
number itself.
The divisors of 12 are 1, 2, 3, 4 and 6.
The sum of divisors of 12 is 16.
12 < 16.Hence, 12 is an abundant number.
Program:
No comments:
Post a Comment