Lets write a C program to count repetition of each digit in a positive integer number using array. Related Read:…