OP here, I fucked up some parts: [code]
#include <stdio.h>
int main ()
{
int c, d;
d = EOF;
while ((c = getchar()) != EOF){
if (c == ' ')
if (c != d)
putchar(' ');
else
putchar(c);
d = c;
}
return 0;
}
Name:
Anonymous2013-02-05 13:56
Your indentation is shit. That else seems silly now. Or maybe it's on purpose that way... retarded shit.
Name:
Anonymous2013-02-05 14:04
>>8 Your indentation is shit.
Why? Or maybe it's on purpose that way... retarded shit.
Why is it retarded?
the else is the same as writing if (c != ' ').
Name:
Anonymous2013-02-05 14:04
>>8 Your indentation is shit.
Why? Or maybe it's on purpose that way... retarded shit.
Why is it retarded?
the else is the same as writing if (c != ' ').