Initialization
This commit is contained in:
parent
37cee1e6f2
commit
124f50dbfe
@ -6,13 +6,13 @@
|
|||||||
int main() {
|
int main() {
|
||||||
double coefs[SIZE] = {0.0};
|
double coefs[SIZE] = {0.0};
|
||||||
double x = 0.0;
|
double x = 0.0;
|
||||||
char input;
|
double input = 0.0;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int length = 0;
|
int length = 0;
|
||||||
double result = 0.0;
|
double result = 0.0;
|
||||||
|
|
||||||
while (count < SIZE && scanf("%c", &input) == 1) {
|
while (count < SIZE && scanf("%lf", &input) == 1) {
|
||||||
coefs[count] = input - '0';
|
coefs[count] = input;
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user