Initialization

This commit is contained in:
Kozar 2024-03-07 13:09:40 +01:00
parent bd9e81973a
commit ab717d9b36

View File

@ -12,13 +12,13 @@ int main() {
double result = 0.0; double result = 0.0;
while (scanf("%lf", &input) == 1) { while (scanf("%lf", &input) == 1) {
coefs[count] = input;
count++;
}
if (input == 'x') { if (input == 'x') {
printf("Exiting program.\n"); printf("Exiting program.\n");
return 0; return 0;
} }
coefs[count] = input;
count++;
}
x = coefs[0]; x = coefs[0];
length = count; length = count;