Write a program to accept any positive integer having three or more number of digits and find and print the sum of all its factors excluding the number itself.
Answers
Answered by
0
Explanation:
Input : n = 30
Output : 72
Dividers sum 1 + 2 + 3 + 5 + 6 +
10 + 15 + 30 = 72
Input : n = 15
Output : 24
Dividers sum 1 + 3 + 5 + 15 = 24
Similar questions
Computer Science,
3 months ago
Math,
3 months ago
English,
3 months ago
Environmental Sciences,
1 year ago
Math,
1 year ago