Puzzle DB12


Add up only the ODD integers in an array of integers

[E-6]Write a function that adds up only the odd integers in an array. Remember that negative integers can be odd. Here is some sample output:

   0    2    1   -3   -5    2    4    6    9   60

sum = 2

Modify the previous program to create this one.



Answer         Next Page         Previous Page Home