From e8eb0ca6e7f53b269c6b532c14d5fdef99395804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=A9re=C5=A1?= Date: Sun, 10 Nov 2019 15:33:58 +0000 Subject: [PATCH] Aktualizovat "program.c --- program.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program.c b/program.c index 75d88f4..6703e72 100644 --- a/program.c +++ b/program.c @@ -36,6 +36,10 @@ int main() { } while((fgets(druhy_vstup,100,stdin))){ + if (*druhy_vstup =='\n'){ + printf("Koniec nacitania.\n"); + goto koniec; + } strtok(druhy_vstup,"\n"); if (!isdigit(*druhy_vstup)){