Computer Science, asked by ishan200716, 20 days ago

accept a number and find sum of its even factors and product of its odd factors. BlueJ​

Answers

Answered by SreelathaBT
0

To find sum of odd factors, we simply need to ignore even factors and their powers. For example, consider n = 18. It can be written as 2132 and sun of all factors is (1)*(1 + 2)*(1 + 3 + 32). Sum of odd factors (1)*(1+3+32) = 13.

Similar questions