sebastianf on 01/31/10
Last Edited at 01/31/10 01:52pm
#include <stdio.h>int main (int argc, const char * argv[]){int c, blank=0; c=getchar(); while(c != EOF){ if(c==' '&&blank==0){ blank++; putchar(c); c=getchar(); } elseif(c==' '&&blank!=0){ c=getchar(); } else{ putchar(c); c=getchar(); blank=0; } }}
Report this snippet Tweet
Comment:
You need to login to post a comment.