Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <queue>
- using namespace std;
- queue <int> c;
- int n,x,ogl;
- int main()
- {
- cin>>n;
- x=n;
- while(x!=0)
- {
- c.push(x%10);
- x/=10;
- }
- while(!c.empty())
- {
- ogl=ogl*10+c.front();
- c.pop();
- }
- if(ogl==n)
- cout<<"DA";
- else
- cout<<"NU";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement