Update 'du4/program.c'
This commit is contained in:
parent
52ed8dbb36
commit
79e03f6a70
@ -17,6 +17,7 @@ int main() {
|
||||
int valid = 1;
|
||||
float num1 = strtof(start, &end);
|
||||
if (end == start) {
|
||||
printf("KONIEC\n");
|
||||
continue;
|
||||
}
|
||||
start = end;
|
||||
@ -24,7 +25,6 @@ int main() {
|
||||
// Find the operation symbol
|
||||
char op = *start;
|
||||
if (op != '+' && op != '-' && op != '*' && op != '/') {
|
||||
printf("CHYBA\n");
|
||||
valid = 0;
|
||||
}
|
||||
start++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user