From f9fb9c2826d6581d972833523b28275b67d2c856 Mon Sep 17 00:00:00 2001 From: Viktor Daniv Date: Mon, 7 Oct 2024 12:22:27 +0000 Subject: [PATCH] Update cv3/program.c --- cv3/program.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 896269a..821fac8 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -39,7 +39,10 @@ void print_stack(Calculator *calc) { for (int i = 0; i <= calc->top; i++) { printf("%.2f ", calc->stack[i]); } - printf("\no input\n"); + printf("\n"); + if(i == calc->top){ + printf("no input\n"); + } } // Основна функція для роботи з операціями