Exercise: Arrays
Let's solve some exercises on arrays before moving onto the next chapter.
Problem statement #1
In the code widget below, write a method to calculate the number of zeros in the array by passing a block to the count
method.
Let's solve some exercises on arrays before moving onto the next chapter.
In the code widget below, write a method to calculate the number of zeros in the array by passing a block to the count
method.