From 84c0fb78bf12ec58a3870094e5b2d4715c07dd9a Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Tue, 24 Nov 2020 20:42:09 +0100 Subject: [PATCH] aa3 --- a3/program.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/a3/program.c b/a3/program.c index 33201d9..df39ae2 100644 --- a/a3/program.c +++ b/a3/program.c @@ -6,15 +6,12 @@ int main() { //int r = i * 2 + 2; int i,j,n,count; int *a = calloc(MAX, sizeof(int)); - scanf("%d",n); - while(n!=0){ - a[i]=n; - i++; - count++; - } + for(int i;i