Initialization
This commit is contained in:
parent
18464f8c57
commit
eaa9c36182
@ -3,18 +3,21 @@
|
|||||||
#define SIZE 10
|
#define SIZE 10
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
char coefs[SIZE] = {0} ;
|
char coefs[SIZE];
|
||||||
int x = 0;
|
int x = 0;
|
||||||
int input;
|
int input;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
while (input != EOF || input != '\n'){
|
while (count < SIZE && scanf("%d", &input) == 1) {
|
||||||
coefs[SIZE] = input;
|
coefs[count] = input;
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%d\n", coefs[SIZE]);
|
printf("Coefficients: ");
|
||||||
|
for (int i = 0; i < count; i++) {
|
||||||
|
printf("%d ", coefs[i]);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user