/ Published in: C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* writes one word per line*/ #include <stdio.h> #define YES 1 #define NO 0 int main (int argc, const char * argv[]){ int c, nl, INWORD; INWORD = NO; nl='\n'; if(INWORD==YES){ if (c=='\n' || c=='\t' || c==' ') { INWORD=NO; } else { } } else { if (c=='\n' || c=='\t' || c==' ') { } else{ INWORD=YES; } } } }