If I have an array and I need to display how many times the number ’12’ is created. I’m using a function to go about this. What resources should I look into to find how to exactly tease out this one number and display how many times it is in the array/list? Any help would be greatly appreciated.
Share
Simply create a counter variable, and examine each element in the array in a loop, incrementing the counter variable every time an element is equal to 12.