Question: Write a program to count and print the total number of characters (lowercase english alphabets only), digits (0 to 9) and white spaces (single

 Write a program to count and print the total number of characters 

Write a program to count and print the total number of characters (lowercase english alphabets only), digits (0 to 9) and white spaces (single space, tab i.e. 'It' and newline i.e. ' ') entered till '$'. That is, input will be a stream of characters and you need to consider all the characters which are entered till '$'. Print count of characters, count of digits and count of white spaces respectively (separated by space). Input Format : A stream of characters terminated by '$' Output Format :

Step by Step Solution

3.40 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Hi All Thanks for the giving opportunity PF below code for my resu... View full answer

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 Computer Engineering Questions!