Computer Science, asked by adiboss8013, 1 year ago

Wap in c plus plus to find whether a number is palindrome or not

Answers

Answered by amannishad0512p5zxh6
0

int n=121,a,t=0;

h=n;              // to make copy of number

while(h!=0)

{

      a=h%10;

     t=t*10+a;

     h/=10;

}

if (t==n)

palindrome

else not

This is logic ;

Mark me brainlest @

Similar questions