wes d2a2ba9e15 first commit há 4 anos atrás
..
README.md d2a2ba9e15 first commit há 4 anos atrás
code.cpp d2a2ba9e15 first commit há 4 anos atrás
unitTest.cpp d2a2ba9e15 first commit há 4 anos atrás

README.md

Product of All Odd Integers

by Helen Yu tags: arrays, numbers

Summary

Create a function that returns the product of all odd integers in an array. Examples oddProduct([3, 4, 1, 1, 5]) ➞ 15 oddProduct([5, 5, 8, 2, 4, 32]) ➞ 25 oddProduct([1, 2, 1, 2, 1, 2, 1, 2]) ➞ 1 Notes N/A

Instructions

Create a function that returns the product of all odd integers in an array.

Examples

oddProduct([3, 4, 1, 1, 5]) ➞ 15

oddProduct([5, 5, 8, 2, 4, 32]) ➞ 25

oddProduct([1, 2, 1, 2, 1, 2, 1, 2]) ➞ 1

Notes

N/A