Question: rn Write a C program that counts the number of each digit entered by the user (Input process should be ended using EOF character). You
rn
Write a C program that counts the number of each digit entered by the user (Input process should be ended using EOF character). You should use switch to compute the number of each digits. For each digit your program should print a line containing that number of adjacent asterisks. Sample Input1: 1821834 2850056085 5599 Sample Output1: 0*** 1** 2** 3* 4* 7 8**** 9** Sample Input2: 77777445521056 Sample Output2: 0* 1* 2* 4** 5*** 6* 7***** 8 Sample Input3: Sample Output3: 782222231567799988001332092555 0*** 1** 2****te tr te 3*** 4 5**** 6* 7*** 8*** 9**** LO N
Step by Step Solution
3.42 Rating (161 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
