diff --git a/du5/program.c b/du5/program.c index f495b51..648537a 100644 --- a/du5/program.c +++ b/du5/program.c @@ -38,7 +38,7 @@ int main(){ int score=0; int c =0; char str[100]; - while(fgets(str,100,stdin)){ + while(fgets(str,100,stdin)!=EOF){ if(isalpha(str[0])!=0||str[0]=='\n'){ if(c==0){ printf("Nepodarilo nacitat nic\n");