From 18464f8c572cac21b017d1d6b688c350cdc44d4a Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 4 Mar 2024 13:55:19 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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; }