Initialization
This commit is contained in:
parent
bd9e81973a
commit
ab717d9b36
@ -12,13 +12,13 @@ int main() {
|
||||
double result = 0.0;
|
||||
|
||||
while (scanf("%lf", &input) == 1) {
|
||||
coefs[count] = input;
|
||||
count++;
|
||||
}
|
||||
if (input == 'x') {
|
||||
printf("Exiting program.\n");
|
||||
return 0;
|
||||
}
|
||||
coefs[count] = input;
|
||||
count++;
|
||||
}
|
||||
|
||||
x = coefs[0];
|
||||
length = count;
|
||||
|
Loading…
Reference in New Issue
Block a user