Initialization

This commit is contained in:
Kozar 2024-03-04 20:15:03 +01:00
parent c7ef54ba95
commit aa6dacfac2

View File

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