voi face acest program combinat .
voi pune 1) sau 2) pt fiecare ;
#include <iostream>using namespace std;
int main()
{int v[100],w[100]i,n,m,A[100],B[100],j,k;
cin>>n;
for(i=1;i<=n;i++)
cin>>v[i];
1)for(i=1;i<=n;i++)
if(i%2==0)
cout<<v[i];
2)for(i=1;i<=n;i++)
if(v[i]%2>0)
cout<<i;
3)cin>>m;
for(i=1;i<=n;i++)
if(v[i]==m)
cout<<v[i];
4)j=1;
k=1;
for(i=1;i<=n;i++)
{if(i%2==1)
{A[j]=v[i];
j++;}
else
{B[k]=v[i];
k++;}
}
for(i=1;i<j;i++)
cout<<A[i];
for(i=1;i<k;i++)
cout<<B[i];
}