Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main(void)
- {
- char line[512];
- while(fgets(line, sizeof(line) - 1, stdin) != 0)
- {
- if((strlen(line) - 1) & 1) // don't count the \n char
- {
- printf(line);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement