Обновить cv3/program.c

This commit is contained in:
Yevhen Kozirovskyi 2024-10-17 16:43:40 +00:00
parent 8cfcf69563
commit 4206a797ab

View File

@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MAX_RAZMER 10
@ -94,6 +95,10 @@ int main() {
exit(1);
}
double a = pop(&stek);
if (b == 0) {
printf("division by zero\n");
exit(1);
}
push(&stek, a / b);
} else {
printf("no input\n");