Hello to all,
How to count the ocurrences of each element within array?
For the sample array below, I'd like to store in an array or variables the number of a's, b's and c's, so the output would be:
Number of a´s = 4
Number of b´s = 1
Number of c´s = 2
Thanks in advancePlease Login or Register to view this content.
Bookmarks