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