String Counting

Sample C Program to counter number of words and lines

  1. #include<stdio.h>
  2. #include<string.h>
  3. #include<conio.h>
  4. "\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 *****************************");
  5. getch();
  6. }