This commit is contained in:
Damián Korpesio 2021-10-20 11:22:24 +02:00
parent 74f29fbc83
commit dcba8699cc

View File

@ -55,17 +55,18 @@ int main() {
} }
} }
else { else {
if(line[0] >= 'a' && line[0] <= 'z') { if(line[0] >= '0' && line[0] <= '9') {
printf("bad input\n");
vys = 1;
break;
}
else {
p = atof(line); p = atof(line);
number[a].cislo = p; number[a].cislo = p;
a++; a++;
input++; input++;
} }
else {
printf("bad input\n");
vys = 1;
break;
}
} }
for (i = 0; i < a; i++){ for (i = 0; i < a; i++){