Răspuns:
#include <iostream>
using namespace std;
int n,cn,ogl,cnn,nou,mica,mare,x,y,p;
int main()
{ cin>>n;
cn=n;
while(cn)
{ogl=ogl*10+cn%10;
cn=cn/10;
}
cout<<ogl<<" ";
cnn=n;
p=1;
while(cnn)
{if(cnn%2==1)
{ nou=nou+(cnn%10)*p;
p=p*10;}
cnn=cnn/10;
}
cout<<nou<<" ";
mica=9;
mare=0;
x=n;
while(x)
{if(x%10<mica)
mica=x%10;
x=x/10;
}
cout<<mica<<" ";
y=n;
while(y)
{if(y%10>mare)
mare=y%10;
y=y/10;
}
cout<<mare<<" ";
return 0;
}