Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 362 Bytes

27.md

File metadata and controls

19 lines (15 loc) · 362 Bytes
 bool isPalindrome(int x) {
      
      if(x<0) return false;

    long long n=x,t=0;
     
          while(n)
          {
              t = t*10 + n%10;
              n=n/10;
          }
      if(t==x)
        return true;
    return false;
    }