Initialization

This commit is contained in:
Kozar 2024-03-05 11:48:38 +01:00
parent 124f50dbfe
commit 3c152db64c

View File

@ -11,7 +11,11 @@ int main() {
int length = 0; int length = 0;
double result = 0.0; double result = 0.0;
while (count < SIZE && scanf("%lf", &input) == 1) { while (count < SIZE) {
if (scanf("%lf", &input) != 1) {
printf(":(");
break;
}
coefs[count] = input; coefs[count] = input;
count++; count++;
} }