From f0d0df803f76bdd9211cf3ae22664b087d6c66d5 Mon Sep 17 00:00:00 2001 From: Yurii Yakovenko Date: Tue, 19 Nov 2024 22:18:54 +0000 Subject: [PATCH] Update a4/program.c --- a4/program.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/a4/program.c b/a4/program.c index e69de29..80b0e12 100644 --- a/a4/program.c +++ b/a4/program.c @@ -0,0 +1,22 @@ +#include + +int main() +{ + int a[1000], i=0; + + do + { + if(scanf("%d", &a[i])!=1) + break; + else + i++; + + }while(1); + + for(int j=0; j