Initialization
This commit is contained in:
parent
c198ce2caa
commit
7b16b9b829
@ -5,12 +5,12 @@
|
|||||||
int main() {
|
int main() {
|
||||||
double coefs[SIZE] = {0.0};
|
double coefs[SIZE] = {0.0};
|
||||||
double x = 0.0;
|
double x = 0.0;
|
||||||
double input = 0.0;
|
char input;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int length = 0;
|
int length = 0;
|
||||||
double result = 0.0;
|
double result = 0.0;
|
||||||
|
|
||||||
while (count < SIZE && scanf("%lf", &input) == 1) {
|
while (count < SIZE && scanf("%c", &input) == 1) {
|
||||||
if (input == 'x') {
|
if (input == 'x') {
|
||||||
printf("\n x input \n");
|
printf("\n x input \n");
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user