Question: do exercise 2 plz Exercise 1 Write a C-program that asks for text input from the keyboard. The output of this program should be the

do exercise 2 plzdo exercise 2 plz Exercise 1 Write a C-program that asks for

Exercise 1 Write a C-program that asks for text input from the keyboard. The output of this program should be the amount of characters, the amount of words and the amount of lines that have been typed. Multiple consecutive spaces should not be counted as multiple words. Reading keys from the keyboard is possible by using the function getchar(). The reading of characters from the keyboard can be stopped when the shutdown-code ^D (CTRL + D) is entered. ^D has the ASCII-value 4 (see 1.4 - Ctrl+D and Ctrl+Z issues (1.4)). Use a while loop. Exercise 2 Rewrite the C-program that was written for exercise 1, but use do while instead of while

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!