This commit is contained in:
Damián Korpesio 2021-10-20 11:18:38 +02:00
parent 3adccda030
commit ad3a6f4469

View File

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