From 9bf18a7adf1d59473e58c4c5b4f673ec6c27c822 Mon Sep 17 00:00:00 2001 From: Deinerovych Date: Wed, 16 Oct 2024 11:56:53 +0200 Subject: [PATCH] 19 --- cv3/program.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 09c97e4..b4f975c 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -59,15 +59,15 @@ float pop() { void print_stack() { for (int i = 0; i <= stack_top; i++) { if (i > 0) { - printf(" %.2f", stack[i]); - } else { - printf("%.2f", stack[i]); + printf(" "); } + printf("%.2f", stack[i]); } - printf("\n"); + printf(" \n"); // добавляем пробел перед новой строкой } + int main() { char arr[50]; char *pend;