Изменить 'a1/program.c'

This commit is contained in:
Oleksandr Hryshchenko 2021-03-18 19:42:53 +00:00
parent de999ec289
commit 80a58d746c

View File

@ -16,7 +16,7 @@ int main () {
break;
for(int j = 0; input[j] != '\0' && input[j] != '\n'; j++)
if(!isdigit(input[j])){
if(!isdigit(input[j]) && input[j] != '.'){
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", i+1);
return 0;
}