hey all
i have this code, its not that complex, it seems right but it outputting randomness , heres the code
int i;
int i2;
int choice;
scanf("%d",&i2);
scanf("%d",&choice);
int int_array_1[i2];
for(i=0;i<0;i++){
int_array_1[i] = i;
}
switch(choice){
case 1:
for(i=0;i<i2;i++){
printf("%d\n",int_array_1[i]);
}
break;
case 2:
for(i=i2-1;i>-1;i--){
printf("%d\n",int_array_1[i]);
}
break;
default:
printf("default");
}