Initialization
This commit is contained in:
parent
b2b446cdf2
commit
6fe00d4b47
@ -12,6 +12,8 @@ int main() {
|
|||||||
|
|
||||||
while (count < SIZE) {
|
while (count < SIZE) {
|
||||||
|
|
||||||
|
coefs[count] = input;
|
||||||
|
|
||||||
if (scanf("%lf", &input) != 1 && (scanf("%c", &input) != 1 || input != 'x')) {
|
if (scanf("%lf", &input) != 1 && (scanf("%c", &input) != 1 || input != 'x')) {
|
||||||
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", count + 1);
|
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", count + 1);
|
||||||
break;
|
break;
|
||||||
@ -19,14 +21,9 @@ int main() {
|
|||||||
if (input == 'x') {
|
if (input == 'x') {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
coefs[count] = input;
|
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
coefs[count] = input;
|
|
||||||
|
|
||||||
count++;
|
|
||||||
|
|
||||||
x = coefs[0];
|
x = coefs[0];
|
||||||
|
|
||||||
length = count;
|
length = count;
|
||||||
|
Loading…
Reference in New Issue
Block a user