From e8f4a4a0eab417ea834cf030a441aeabd696d423 Mon Sep 17 00:00:00 2001 From: Patrik Seman Date: Sat, 15 Apr 2023 11:59:29 +0200 Subject: [PATCH] . --- du6/program.c | 1 + 1 file changed, 1 insertion(+) 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'){