Sample C Program to counter number of words and lines
#include<stdio.h> #include<string.h> #include<conio.h> "\n\t\t String counting""\n\t\t ***************""\n Enter a String and terminate it with * star\n"'*'"\n The given strings: \n"'*'"%c"' ''\n'' '"\n There is one word and one line""\n There are %d words and %d lines""\n\t *****************************"); getch(); }