From 097131e90c62f73dd6cec1c94e2f4078d10bfa6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Tue, 19 Oct 2021 19:51:42 +0200 Subject: [PATCH] prvy --- cv3/program.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 0cba281..0dc21b0 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -21,11 +21,11 @@ int main() { while (fgets(line, LINESIZE, stdin)) { velkost = strlen(line); if (velkost == 1 && line[velkost - 1] == '\n') { - printf("no input"); + printf("no input\n"); break; } if (input >= 10){ - printf("no input"); + printf("no input\n"); break; } if (line[0] == '+' || line[0] == '-' || line[0] == '*' || line[0] == '/') { @@ -57,7 +57,9 @@ int main() { for (i = 0; i < a; i++){ printf("%.2f ", number[i].cislo); } + printf("\n"); + } return 0; } \ No newline at end of file