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