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)){