Initialization

This commit is contained in:
Kozar 2024-03-05 11:56:14 +01:00
parent 2347edd3ac
commit abf36e5838

View File

@ -12,13 +12,10 @@ int main() {
double result = 0.0;
while (count < SIZE) {
if (getchar() == '\n') {
break;
}
if (scanf("%lf", &input) != 1) {
if (scanf("%lf", &input) != 1 && input == '\n') {
printf(":(");
break;
}
coefs[count] = input;
count++;
}