Update 'du4/program.c'

This commit is contained in:
Anzhelika Nikolaieva 2023-03-17 21:20:52 +00:00
parent 6eedd49d95
commit 927ff558af

View File

@ -15,16 +15,16 @@ int main() {
while (*start != '\n') {
if (*start == '+' || *start == '-' || *start == '*' || *start == '/') {
if (has_operator) {
printf("CHYBA\n");
goto next_line;
}
has_operator = 1;
op = *start;
} else if ((*start < '0' || *start > '9') && *start != ' ' && *start != '=' && *start != '.') {
goto next_line;
}
start++;
if (!has_operator) {
printf("CHYBA\n");
goto next_line;
}
if (!has_operator) {