Computer Science, asked by CaptainTiger, 5 months ago

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 dcruzmalwin
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