Question: 2. Problem B 2.1 Specification Write a C program to count the number of blank characters (white spaces) in a line of characters. The program

 2. Problem B 2.1 Specification Write a C program to count

2. Problem B 2.1 Specification Write a C program to count the number of blank characters (white spaces) in a line of characters. The program reads from the standard input a line of characters and outputs the number of blank characters found in the line. 2.2 Implementation The program should: be named labib.c use getchar and a loop to read a line of characters which is terminated by the new line character ' '. display the following prompt before each input: Enter a line of characters> 2.3 Sample Inputs/Outputs: indigo 352 #lablb Enter a line of characters>Welcome to CSE 2031. indigo 353 labib Enter a line of characters>123456789 indigo 354 + labib Enter a line of characters>a bcdefgh indigo 355

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!