Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.15 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int c, nl;
  5.    
  6.     nl = 0;
  7.     while((c = getchar()) != EOF)
  8.         if(c == ' \n ')
  9.           ++nl;
  10.     printf("%d\n", nl);
  11.    
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement