This commit is contained in:
Deinerovych 2024-10-16 11:56:53 +02:00
parent ce1cbd3a61
commit 9bf18a7adf

View File

@ -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;