SHARE
TWEET

Untitled

a guest Jan 21st, 2020 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int x, y, z, r, t;
  6.     x = 0;
  7.     r = 0;
  8.  
  9.     while((y=getchar()) != EOF){
  10.     if(y == '\n')
  11.         ++z;
  12.     if(y == ' '||y == '\n'||y == '\t')
  13.         ++x;
  14.     else if (x=0)
  15.         ++r;}
  16.     printf("%d%d/n", x,r); 
  17.  
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top