15,168,423 members
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 6: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...

## Solution 1

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

Top Experts
Last 24hrsThis month
 OriginalGriff 225 Richard MacCutchan 150 Richard Deeming 110 Dave Kreskowiak 100 RickZeeland 75
 OriginalGriff 3,158 Richard MacCutchan 1,115 CHill60 815 _Asif_ 673 Luc Pattyn 585

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