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