Initialization
This commit is contained in:
parent
74332063ea
commit
6d21528e78
@ -11,9 +11,16 @@ int main() {
|
||||
int length = 0;
|
||||
double result = 0.0;
|
||||
|
||||
while (scanf("%lf", &input) == 1) {
|
||||
while (count < SIZE) {
|
||||
if (scanf("%lf", &input) != 1) {
|
||||
if (scanf("%c", &input) == 1 && input == 'x') {
|
||||
printf("123\n");
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
coefs[count] = input;
|
||||
printf("%lf", coefs[count]);
|
||||
count++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user