14.
#include<iostream>
using namespace std;
int main()
{
int n , inv , clona;
inv = 0;
cin>>n;
clona = n;
while (n != 0)
{
inv = inv * 10 + n % 10;
n = n / 10;
cout<<inv<<endl;
}
15.
#include<iostream>
using namespace std;
int main()
{
int a, inv, aux;
cin>>a;
aux=a;
while (a!=0){
aux=aux*10+a%10;
aux=aux/10;
}
if (inv==a){
cout<<"PALINDROM"<<endl;
}
else{
cout<<"NU"<<endl;
}
return 0;
}
sper ca te-am ajutat