polish calc

This commit is contained in:
Maryna Kravtsova 2020-11-02 16:00:22 +01:00
parent 6e024061ef
commit eaff9d7eb1

View File

@ -44,11 +44,8 @@ void print_stack(struct stack *stack){
for(i = 0; i < len; i++){ for(i = 0; i < len; i++){
printf("%0.2f ", stack->values[i]); printf("%0.2f ", stack->values[i]);
} }
if(stack->size != 0){
printf("%0.2f ", stack->values[i]);
printf("\n"); printf("\n");
} }
}
int main() { int main() {