Initialization

This commit is contained in:
Kozar 2024-03-07 13:02:18 +01:00
parent 3e2f9826e2
commit bd9e81973a

View File

@ -12,7 +12,10 @@ int main() {
double result = 0.0; double result = 0.0;
while (scanf("%lf", &input) == 1) { while (scanf("%lf", &input) == 1) {
if (input == 'x') {
printf("Exiting program.\n");
return 0;
}
coefs[count] = input; coefs[count] = input;
count++; count++;
} }