15,312,353 members

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...............................

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

Nothing...............................

Comments

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

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