Răspuns:
1, main(){
int n,imp=0,par=0,k=1;
cin>>n;
while (n!=0){
if(k==1){
imp=imp*10+n%10;
n=n/10;
k++;}
else{
par=par*10+n%10;
n=n/10;
k=1;}
}
cout<<imp<<" "<<par;
}
2.main(){
int n,uc=0,rez=0,p=1;
cin>>n;
while (n!=0){
if(n%2==0)
n=n/10;
else{
uc=n%10;
rez=uc*p+rez;
p=p*10;
n=n/10;
}
}
cout<<rez;
}
Explicație: