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++)
{
printf("%f",mystack->values[i]);
printf("%.2f",mystack->values[i]);
if (i<mystack->size-1)
{
printf(" ");
@ -98,6 +98,7 @@ int main()
input[strcspn(input,"\n")]=0;
if (strlen(input)==0)
{
printf("no input");
continue;
}
if (flag==0)