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
Social Sciences,
3 months ago
Hindi,
3 months ago
Environmental Sciences,
11 months ago
Math,
11 months ago