diff --git a/cv3/program.c b/cv3/program.c index 6fa2ca3..4867019 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -3,11 +3,18 @@ #define SIZE 10 int main() { - char numbs[SIZE] = {0} ; + char coefs[SIZE] = {0} ; int x = 0; - int input = 0; + int input; int count = 0; - + + while (input != EOF || input != '\n'){ + coefs[SIZE] = input; + count ++; + } + + printf("%d\n", coefs[SIZE]); + return 0; }