Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <ctype.h>
- int main(void)
- {
- int c;
- /// int noLines = 0;
- int noPara = 0;
- while ((c = getchar()) != EOF)
- {
- if (c == '\n')
- {
- while ((c = getchar()) == '\n')
- {
- while ((c = getchar()) == '\n');
- noPara++;
- printf("No of Paragraph %d\n", noPara);
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment