Computer Science, asked by anshiiikaa1520, 6 months ago

write a program to input an array of n elements and find the frequency of the number that is yo be searched​

Answers

Answered by Ashrithakondamuri
2

Answer:

Run an inner loop from i + 1 to size . The loop structure should look like for(j = i + 1; j < N; j++) . Inside inner loop, if duplicate element is found increment the frequency count of current array element. Which is if(arr[i] == arr[j]) then count++ .

Similar questions