printf("Proszę :)\n");
#include<stdio.h>
#define IN 1
#define OUT 0
int main()
{
int iterator,state,wordWidth;
char sign,word[10000];
wordWidth=OUT;
state=OUT;
while( (word[wordWidth]=getchar())!='\n' ) /*tu podstaw swój statement końca wczytywania*/
{
wordWidth++;
}
for( iterator=OUT;iterator<wordWidth;iterator++ )
{
if( (word[iterator]!=' ')&&(state==OUT) )
{
state=IN;
if( (word[iterator]>='a')&&(word[iterator]<='z') )
{
word[iterator]-=32; /*toUpper*/
}
printf("%c",word[iterator]);
}
else if( (word[iterator]!=' ')&&(state==IN))
{
printf("%c",word[iterator]);
}
else if( (word[iterator]==' ')&&(state==IN))
{
state=OUT;
}
}
return 0;
}