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

View File

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