From 5ff3758ff4e64ba03dad7d6675bae9e4c0c07106 Mon Sep 17 00:00:00 2001 From: Marat Izmailov Date: Thu, 17 Oct 2024 11:53:56 +0000 Subject: [PATCH] Update cv3/program.c --- cv3/program.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 89825a6..0d613e3 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -33,7 +33,7 @@ float pop_stack(struct stack* s) { void print_stack(struct stack* s) { for (int i = 0; i < s->size; i++) { - printf("%.2f ", s->values[i]); + printf("%.2f ", s->values[i]); } printf("\n"); } @@ -46,7 +46,8 @@ int main() { int has_input = 0; while (1) { - + + printf("Zadajte číslo alebo operáciu (+, -, *, /): "); if (!fgets(input, sizeof(input), stdin)) { break; }