diff --git a/cv3/program.c b/cv3/program.c index 31e5b27..ac87fc0 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -94,9 +94,11 @@ int main() { printf("no input\n"); exit(1); } + double a = pop(&stek); if (b == 0) { printf("division by zero\n"); + return 0; exit(1); } push(&stek, a / b); @@ -111,4 +113,4 @@ int main() { } printf("no input\n"); return 0; -} \ No newline at end of file +}