From d3c17b1c943ca55cc66ae17ff658e2be080e68a9 Mon Sep 17 00:00:00 2001 From: vj586da Date: Thu, 21 Oct 2021 22:22:46 +0200 Subject: [PATCH] uprava nasobenia delenia --- cv3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");