Question: flow chat also - 7. Write and comment a C program that: - Reads a keyboard character from the keyboard input one at a time.
flow chat also

- 7. Write and comment a C program that: - Reads a keyboard character from the keyboard input one at a time. The program should continue reading the string until any symbol is entered. (use a do_while loop) The program should count the number of characters which are letters and also decimal digits. [Hint: Declare and initialize two integer variables num_chars and num_digits] The total number of letters and digits should be displayed on the screen. Flowcharting is an optional bonus of [+10%] Example output: (Your program must not just imitate the output shown below, but must function) >> Enter character on keyboard: P Enter character on keyboard: 7 Enter character on keyboard: 1 Enter character on keyboard: a Enter character on keyboard: 2 Enter character on keyboard: Z Enter character on keyboard: h Enter character on keyboard: ! Result: total of 4 letters and 3 digits were input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
