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]; }