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