A number that is smaller than the sum of its factors excluding the
highest factor is said to be an Abundant Number.
Example: Number=12
Sum of its factors excluding the highest
factor=1+2+3+4+6=16
Write a program to print all abundant numbers in the range 1 to n(both
inclusive) where n is to be accepted in the program.print the output with the
appropriate message
Answers
Answered by
1
Answer:
A number that is smaller than the sum of its factors excluding the highest factor is said to be an abundant number. Example number:12. Sum of its factors excluding the highest factor =1+2+3+4+5+6=16.
Explanation:
plz mark me as brilliant
Similar questions