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