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 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
Get step-by-step solutions from verified subject matter experts
