From 8f7129fca9008781d7604dc98ec6c1e09c34c9d5 Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 4 Mar 2024 16:28:02 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cv3/program.c b/cv3/program.c index 0aea8e7..89e354e 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -19,6 +19,17 @@ int main() { length = count; + for (int y = 0; y <= length; y++ ){ + if (atoi(coefs[y]) == 1){ + printf("Nepodarilo sa nacitat polynom na %d mieste.", y); + break; + } + else{ + continue; + } + + } + for (int i = 1; i < length; i ++){ result = result * x + coefs[i]; }