#include <stdio.h>
int main() {
int b;
int y=0;
int x=9;
int a[10];
for(int f=0; f<10; f++)
{
scanf("%d", &b);
if(b%2==1)
{
a[y]=b;
y++;
}
else{
a[x]=b;
x--;
}
}
for(int f=0; f<10; f++)
{
printf("%d \n", a[f]);
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: