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

View File

@ -59,13 +59,13 @@ float pop() {
void print_stack() {
for (int i = 0; i <= stack_top; i++) {
if (i > 0) {
printf(" %.2f", stack[i]);
} else {
printf(" ");
}
printf("%.2f", stack[i]);
}
printf(" \n"); // добавляем пробел перед новой строкой
}
printf("\n");
}
int main() {