Question: Write a C code to enter two non - negative integers ( n and x ) , then print the frequency of digit x in
Write a C code to enter two nonnegative integers n and x then print the frequency of digit x in the number n both n and x should be positives or zero. If neither is negative, then print invalid input n can be any nonnegative number, while x should be a digit acceptable values are between and only If the user enters x outside the range then print invalid digit Example: n x then the frequency is is repeated times in n n x then print invalid input n x then print invalid digit
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
