diff --git a/cv3/program.c b/cv3/program.c index 5335c75..de4c827 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -58,7 +58,7 @@ int main(){ if(char_value[0] == '/'){ float a = pop_stack(&myStack); float b = pop_stack(&myStack); - float c = a/b; + float c = b/a; push_stack(&myStack, c); print_stack(&myStack); printf("\n");