Initialization
This commit is contained in:
parent
aa6dacfac2
commit
577da2e684
@ -11,14 +11,16 @@ int main() {
|
|||||||
double result = 0.0;
|
double result = 0.0;
|
||||||
|
|
||||||
while (count < SIZE && scanf("%lf", &input) == 1) {
|
while (count < SIZE && scanf("%lf", &input) == 1) {
|
||||||
|
coefs[count] = input;
|
||||||
|
|
||||||
if (input == 'x')
|
if (input == 'x')
|
||||||
{
|
{
|
||||||
printf("Nepodarilo sa nacitat polynom na %d mieste.", count);
|
printf("Nepodarilo sa nacitat polynom na %d mieste.", count);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
coefs[count] = input;
|
|
||||||
count++;
|
count++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
x = coefs[0];
|
x = coefs[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user