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 {
if(line[0] >= 'a' && line[0] <= 'z') {
printf("bad input\n");
vys = 1;
break;
}
else {
if(line[0] >= '0' && line[0] <= '9') {
p = atof(line);
number[a].cislo = p;
a++;
input++;
}
else {
printf("bad input\n");
vys = 1;
break;
}
}
for (i = 0; i < a; i++){