program to take a number and a digit from the user. and then findout that digit is coming how many times to that given number

write a program to take a number and a digit from the user. and then
findout that digit is coming how many times to that given number.

a.) int num1 = 122233
int digit = 2

Output :=> 3

b.) int num1 = 122345
int digit = 7

Outout :=> 0
122233
2
Total : 0 Discussion
Login