Part 4 of 5 in Writing functions  

Even out by harsha_s

Problem statement

Your function is given an array (and its size if you are coding in C/C++) containing some numbers. Decrease the value of all odd numbers in the array by 1, so that the entire array contains only even numbers.

To try out your code

Sign in

Sign up