I need to add an element to an array as long as it meets a certain condition (eg positive). This is what I have but I don't know how to add it to the array.
void cargar(int a){
int ar[11];
int nu, i;
for (i=0;i<11;i++){
printf("ingrese numero: ");
scanf("%d",&nu);
if (nu>0)
}
}
It seems to me that it could be something like:
https://onlinegdb.com/9STkuRaF0