0
/ 1.0
Problem Description
Write a method countOdds
that takes an array of integers and returns the count of values that are odd numbers.
public...
Write a method countOdds
that takes an array of integers and returns the count of values that are odd numbers.
public int countOdds(int[] arr)
Examples:
countOdds({2, 3, 5, 6, 8, 9}) -> 3
countOdds({11}) -> 1
countOdds({12}) -> 0
Your feedback will appear here when you check your answer.