Initialization
This commit is contained in:
parent
684b4d8b81
commit
6926cea8e8
@ -12,8 +12,10 @@ int main() {
|
|||||||
double result = 0.0;
|
double result = 0.0;
|
||||||
|
|
||||||
while (count < SIZE) {
|
while (count < SIZE) {
|
||||||
if (scanf("%lf", &input) != 1) {
|
printf("+");
|
||||||
return 0;
|
if (scanf("%lf", &input) != 1 && input != '\n') {
|
||||||
|
printf("-");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
coefs[count] = input;
|
coefs[count] = input;
|
||||||
|
Loading…
Reference in New Issue
Block a user