C program to count occurrence of a particular digit in a number
In this program, we will read an integer number and a digit then print the total number of occurrence of input digit in that number.
For example there is a number 12311 and in which we want to find occurrence of 1 - The occurrence of 1 will be 3 in number 12311.
Count Occurrence of a Digit in a Number using C program
Using User Define Function
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer