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