break po deleni nulou

This commit is contained in:
Valér Jakubčo 2021-10-21 23:24:30 +02:00
parent 1d893f00ec
commit b21c094531

View File

@ -66,6 +66,7 @@ int main(){
float a = pop_stack(&myStack); float a = pop_stack(&myStack);
if(a == 0){ if(a == 0){
printf("division by zero\n"); printf("division by zero\n");
break;
}else{ }else{
float b = pop_stack(&myStack); float b = pop_stack(&myStack);
float c = b/a; float c = b/a;