I create an array, size and values given by the user, and then store only the positive even values into another array, but I only get 0 as answer.

```
# include <stdio.h>
int main()
{
    int n, i;
    float num[10], A[10];

    printf("Enter the numbers of elements: ");
    scanf("%d", &n);

    for(i = 0; i < n; ++i)
    {
        printf("%d. Enter number: ", i+1);
        scanf("%f", &num[i]);
    }
    for(i = 0; i < n; ++i)
    {
        if(num[i] > 0 && fmod(num[i],2)==0){  
            A[i] = num[i];
        }
    }
    printf("Positive, even values of the new created array are%d\t", A[i]);

    return 0;
}

```