Question: Question The current selected programming language is C . We emphasize the submission of a fully working code over partially correct but efficient code. Once

Question
The current selected programming language is C. We emphasize the submission of a fully working code over partially correct but efficient code. Once submitted, you cannot review this problem again. You can use printf() to debug your code. The printf() may not work in case of syntax/runtime error. The version of GCC being used is 5.5.0.
A company wishes to encode its data. The data is in the form of a number. They wish to encode the data with respect to a specific digit. They wish to count the number of times the specific digit (i.e.0-9) reoccurs in the given data so that they can encode the data accordingly.
Write an algorithm to find the count of the specific digit in the given data.
Input
The first line of input consists of an integer - data, representing the data to be encoded.
The second line consists of an integer - digit, representing the digit to be counted in the data.
Output
Print an integer representing the
 Question The current selected programming language is C. We emphasize the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!