From dda5a200780b9a2937e91f99913aebc6093ae3ef Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 4 Mar 2024 20:21:11 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;