Count number of numbers


A[]={11,12,13,14,15}, k=1

Output=6 //Count of the digit 1 in the array
it is a program to count the number of ‘k’ in the array of elements

can u elaborate ur problem i can’t figure it out from problem code