diff --git a/cv3/program.c b/cv3/program.c index 08d8d52..63f1327 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -13,7 +13,7 @@ int main() { while (count < SIZE && scanf("%lf", &input) == 1) { coefs[count] = input; - if (coefs[count] = 'x') + if (input == 'x') { printf("Nepodarilo sa nacitat polynom na %d mieste.", count); return 1;