Challenge: Adding Negative and Odd Numbers

From the given set of values in an array, you need to find the sum of negative as well as odd numbers.

We'll cover the following

Problem statement

You need to write code that returns the sum of integers that are both negative as well as odd.

Get hands-on with 1400+ tech skills courses.