This commit is contained in:
Your Name 2025-10-16 01:00:07 +02:00
parent 4dbba7d790
commit 670c4bdaf7

View File

@ -77,7 +77,7 @@ void print_stack(struct stack* mystack)
{ {
for(int i=0;i<mystack->size;i++) for(int i=0;i<mystack->size;i++)
{ {
printf("%f",mystack->values[i]); printf("%.2f",mystack->values[i]);
if (i<mystack->size-1) if (i<mystack->size-1)
{ {
printf(" "); printf(" ");
@ -98,6 +98,7 @@ int main()
input[strcspn(input,"\n")]=0; input[strcspn(input,"\n")]=0;
if (strlen(input)==0) if (strlen(input)==0)
{ {
printf("no input");
continue; continue;
} }
if (flag==0) if (flag==0)