From 5219c45874c2d11cf13dad6251b394d194b6cfeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Tue, 19 Oct 2021 19:48:32 +0200 Subject: [PATCH] prvy --- cv3/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index b991043..0cba281 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -21,6 +21,7 @@ int main() { while (fgets(line, LINESIZE, stdin)) { velkost = strlen(line); if (velkost == 1 && line[velkost - 1] == '\n') { + printf("no input"); break; } if (input >= 10){ @@ -54,7 +55,7 @@ int main() { } for (i = 0; i < a; i++){ - printf("%f ", number[i].cislo); + printf("%.2f ", number[i].cislo); } printf("\n"); }