Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have an array of integers of x entries i.e: [1,2,3,4,1,2,3,4,4,3,3,3] how do I

ID: 3616754 • Letter: I

Question


I have an array of integers of x entries i.e: [1,2,3,4,1,2,3,4,4,3,3,3] how do I count the number of repeated entries and print it intabular form i.e N count 1 2 2 2 3 5 4 3
I have to use a counter array to do so, but i don't know howto to it.
I'm using the C programming language



[1,2,3,4,1,2,3,4,4,3,3,3] how do I count the number of repeated entries and print it intabular form i.e N count 1 2 2 2 3 5 4 3
I have to use a counter array to do so, but i don't know howto to it.
I'm using the C programming language


Explanation / Answer

please rate - thanks you weren't specific as to the range of the numbers, so I made itvery general #include #include int main() {int i,j, a[50],x,count[50]={0}; printf("How many numbers do you have? "); scanf("%d",&x); for(i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote