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"); }