Sa iti fie de folos!
Raspunsuri:
1. 1012141
2. 22022
3.
#include <iostream>
using namespace std;
int main()
{
int n =0;
cout<<"n=";cin>>n;
int t = n;int r =0;
while(t>0)
{
if((t%10)%2==1)
r=r*10+1;
else
r=r*10+t%10;
t=t/10;
}
n=0;
while(r>0)
{
n=n*10+r%10;
r=r/10;
}
cout<<n;
return 0;
}