diff --git a/du6/program.c b/du6/program.c index ac10b0c..326d569 100644 --- a/du6/program.c +++ b/du6/program.c @@ -15,6 +15,7 @@ int main(){ scanf("%d\n", &pocet); if(pocet<1){ puts("Nespravny vstup"); + return 0; } while(fgets(riadok,50,stdin)!=NULL && riadok[0]!='\n'){ if(riadok[strlen(riadok)-1]=='\n'){