Write an algorithm and draw a flowchart to find the sum of factors of a number excluding the number itself and check the sum is equal to the number or not.
Answers
Answered by
0
Answer:
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