Initialization

This commit is contained in:
Kozar 2024-03-05 10:51:11 +01:00
parent b2b446cdf2
commit 6fe00d4b47

View File

@ -12,6 +12,8 @@ int main() {
while (count < SIZE) {
coefs[count] = input;
if (scanf("%lf", &input) != 1 && (scanf("%c", &input) != 1 || input != 'x')) {
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", count + 1);
break;
@ -19,13 +21,8 @@ int main() {
if (input == 'x') {
break;
}
coefs[count] = input;
count++;
}
coefs[count] = input;
count++;
}
x = coefs[0];