From b21c0945317b5fafc2b10533a72130fbc099ae52 Mon Sep 17 00:00:00 2001 From: vj586da Date: Thu, 21 Oct 2021 23:24:30 +0200 Subject: [PATCH] break po deleni nulou --- cv3/program.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cv3/program.c b/cv3/program.c index 33fb3ec..c5d5af2 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -66,6 +66,7 @@ int main(){ float a = pop_stack(&myStack); if(a == 0){ printf("division by zero\n"); + break; }else{ float b = pop_stack(&myStack); float c = b/a;