Initialization
This commit is contained in:
parent
c97976e478
commit
8f7129fca9
@ -19,6 +19,17 @@ int main() {
|
|||||||
|
|
||||||
length = count;
|
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 ++){
|
for (int i = 1; i < length; i ++){
|
||||||
result = result * x + coefs[i];
|
result = result * x + coefs[i];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user