Initialization
This commit is contained in:
parent
3e2f9826e2
commit
bd9e81973a
@ -12,7 +12,10 @@ 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++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user