Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1.  
  2.  
  3. #include<stdio.h>
  4. #include<string.h>
  5.  
  6. int main(void)
  7. {
  8.     char line[512];
  9.  
  10.     while(fgets(line, sizeof(line) - 1, stdin) != 0)
  11.     {
  12.         if((strlen(line) - 1) & 1) // don't count the \n char
  13.         {
  14.             printf(line);
  15.         }
  16.     }
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement