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 (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
Hi All Thanks for the giving opportunity PF below code for my resu... View full answer
Get step-by-step solutions from verified subject matter experts
