$n=12321;
$reverse=0;
while($n!=0){
$reverse=$reverse*10;
$reverse=$reverse+$n%10;
$n=$n/10;
}
if($n==$reverse){
echo "Palidrom";
}else{
echo "Not Palidrom";
Coderraj is the global online platform and circle for programmers to learn, communicate, share their knowledge and growth their careers.
Copyright ©2022 coderraj.com. All Rights Reserved.