How to write a C program that will take input of a line of text ended by a new line ('\n') and count the number of characters,word s,sentences in that string, and print the totals.
(Assume the input text will not exceed 100 characters.)