SCRIPT TO CHECK GIVEN NUMBER IS PALINDROME OR NOT

 SCRIPT TO CHECK GIVEN NUMBER IS PALINDROME OR NOT 
#!/bash/sh
echo " enter the number"
read n
sd=0
rev=" "
 on=$n

while [ $n -gt 0 ]
do
sd=$(($n%10))
n=$(($n/11))
rev=$(echo ${rev}${sd})
done
if [ $on -eq $rev ]
then
echo " polindrome"
else
echo "not polindrome"
fi