19
This commit is contained in:
parent
ce1cbd3a61
commit
9bf18a7adf
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user