Wap in c plus plus to find whether a number is palindrome or not
Answers
Answered by
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
English,
7 months ago
History,
7 months ago
Environmental Sciences,
7 months ago
Computer Science,
1 year ago
Social Sciences,
1 year ago