scorici

parandlin

Nov 18th, 2015
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <ctype.h>
  3.  
  4. int main(void)
  5. {
  6.   int c;
  7.   /// int noLines = 0;
  8.   int noPara = 0;
  9.   while ((c = getchar()) != EOF)
  10.     {
  11.       if (c == '\n')
  12.     {
  13.       while ((c = getchar()) == '\n')
  14.         {
  15.           while ((c = getchar()) == '\n');
  16.           noPara++;
  17.           printf("No of Paragraph %d\n", noPara);
  18.         }
  19.    
  20.     }
  21.     }
  22.   return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment