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