#include <stdio.h>

int p(int *b)
{
    for(int f=0; f<10; f++)
    {
        if(b[f]%2==0)
        {
            printf("%d \n",b[f]);
        }
    }
}

int o(int *c)
{
    for(int f=0; f<10; f++)
    {
        if(c[f]%2==1)
        {
            printf("%d \n",c[f]);
        }
    }
}


int main() {
    
    int a[10];
    for(int f=0; f<10; f++)
    {
        scanf("%d", &a[f]);
    }

    p(a);
    o(a);
    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: