You are on page 1of 1

#include<iostream.

h>
VOID MAIN()
{
int inv,s,n,c,x;
cout<<"n=",cin>>n;
inv=0,x=n;
while(x!=0){c=x%10;
inv=inv*10+c;
x=x/10;}
if(inv==x) cout<<"DA";
else cout<<"NU";
}

You might also like