Update 'du4/program.c'
This commit is contained in:
parent
2fc2076427
commit
552a60316c
@ -36,7 +36,7 @@ int main() {
|
||||
num1 = strtof(line, &next);
|
||||
while (*next == ' ') next++;
|
||||
if (*next != op) {
|
||||
printf("CHYBA\n");
|
||||
printf("KONIEC\n");
|
||||
goto next_line;
|
||||
}
|
||||
next++;
|
||||
@ -67,10 +67,6 @@ int main() {
|
||||
result = num1 * num2;
|
||||
break;
|
||||
case '/':
|
||||
if (num2 == 0) {
|
||||
printf("CHYBA\n");
|
||||
goto next_line;
|
||||
}
|
||||
result = num1 / num2;
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user