This commit is contained in:
Damián Korpesio 2021-10-20 11:19:47 +02:00
parent ad3a6f4469
commit aebdfd0714

View File

@ -56,15 +56,15 @@ int main() {
} }
else { else {
if(line[0] >= 'a' && line[0] <= 'z') { if(line[0] >= 'a' && line[0] <= 'z') {
printf("bad input");
break;
}
else {
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++){