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