Initialization

This commit is contained in:
Kozar 2024-03-07 13:19:04 +01:00
parent 74332063ea
commit 6d21528e78

View File

@ -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++;
}