From bba7a52360ca71e708c5669b42042ce3d7944f98 Mon Sep 17 00:00:00 2001 From: Viktor Daniv Date: Mon, 7 Oct 2024 12:26:30 +0000 Subject: [PATCH] Update cv3/program.c --- cv3/program.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 821fac8..01a5197 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -40,9 +40,6 @@ void print_stack(Calculator *calc) { printf("%.2f ", calc->stack[i]); } printf("\n"); - if(i == calc->top){ - printf("no input\n"); - } } // Основна функція для роботи з операціями @@ -75,6 +72,7 @@ int perform_operation(Calculator *calc, char op) { } print_stack(calc); + printf("no input\n"); return 1; }