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