Question: please use c language Write a program that counts the number of characters and lines in the input: Enter text: Mary had a little lamb,

 please use c language Write a program that counts the number

please use c language

Write a program that counts the number of characters and lines in the input: Enter text: Mary had a little lamb, little lamb, little lamb; Mary had a little lamb, its fleece was white as snow. Lines: 4 Chars: 104 Hint: use getchar to process on character at a time. Look for " " characters, and count them to determine the number of lines in the input

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!