23
This commit is contained in:
parent
ffddbbba4c
commit
1fa182a7fa
@ -58,12 +58,12 @@ float pop() {
|
||||
|
||||
void print_stack() {
|
||||
for (int i = 0; i <= stack_top; i++) {
|
||||
if (i > 0) {
|
||||
printf("%.2f", stack[i]);
|
||||
if (i < stack_top) {
|
||||
printf(" ");
|
||||
}
|
||||
printf("%.2f", stack[i]);
|
||||
}
|
||||
printf("\n"); // Убираем лишний пробел перед переводом строки
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
Loading…
Reference in New Issue
Block a user