Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define IN 1
- #define OUT 0
- int main()
- {
- int c, state;
- state=IN;
- while((c=getchar()) != EOF) { // Remember curly braces
- if(c=='\t' && state==IN || c==' ' && state==IN) {
- putchar('\n');
- state=OUT;
- }
- else if(c!='\t' && c!=' ') {
- putchar(c); // putchar() puts one character
- state=IN; // at a time so do it twice
- }
- }
- printf("That was tits.\n");
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment