Initialization

This commit is contained in:
Kozar 2024-03-04 20:16:38 +01:00
parent aa6dacfac2
commit 577da2e684

View File

@ -11,14 +11,16 @@ int main() {
double result = 0.0;
while (count < SIZE && scanf("%lf", &input) == 1) {
coefs[count] = input;
if (input == 'x')
{
printf("Nepodarilo sa nacitat polynom na %d mieste.", count);
return;
}
coefs[count] = input;
count++;
}
x = coefs[0];