Click here to Skip to main content
15,311,385 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Write a C Program to print the summation of even divisors of a positive integer number.
The divisors of a number are those numbers by which the number is divisible that if
divided, the remainder is zero. Suppose the number is 12 and the divisors of 12 are 1 2 3 4
6 12. So the summation of the even divisors is 24. You will have to take a number as input
and print the sum of the even divisors of that number.
Sample Input:
10
Sample Output:
12

What I have tried:

Nothing...............................
Posted
Updated 4-Dec-21 5:17am
v2
Comments
Dave Kreskowiak 4-Dec-21 11:20am
   
Sure, there are, ut, you appear to be asking people to do your work for you. That isn't helping you at all.

Now, if you had specific questions about YOUR code and any problems you're having...

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900