Code:
#include <stdio.h>
int main(int argc, char **argv)
{
int i;
int c;
i = 0;
do
{
while ( (c = getchar()) == ' ')
{
if(i == 0)
{
putchar(c);
i++;
}
}
i = 0;
putchar(c);
}
while( c != EOF );
return(0);
}
Nadam se da si na ovo mislio, program ispisuje sve
razmake a ako ih ima vise, ispisuje samo jedan...
Pozdrav
Reality is an illusion that occurs due to lack of alcohol.
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
"The problem with the world is that everyone is a few drinks behind."
-Humphrey Bogart