Computer Science, asked by aryanraj09051, 5 months ago

Write a program in Java to calculate the sum of all the factors of a number accepted by the user.
answer this ill mark u brainliest

Answers

Answered by adiraj548
2

Answer:

plz mark as brainalist...

Explanation:

If number is odd, then there are no even factors, so we simply return 0.

If number is odd, then there are no even factors, so we simply return 0.If number is even, we use above formula. We only need to ignore 20. All other terms multiply to produce even factor sum. For example, consider n = 18. It can be written as 2132 and sun of all factors is (20 + 21)*(30 + 31 + 32). if we remove 20 then we get the

If number is odd, then there are no even factors, so we simply return 0.If number is even, we use above formula. We only need to ignore 20. All other terms multiply to produce even factor sum. For example, consider n = 18. It can be written as 2132 and sun of all factors is (20 + 21)*(30 + 31 + 32). if we remove 20 then we get theSum of even factors (2)*(1+3+32) = 26.

please follow me friends and give some thanks........

Attachments:
Similar questions