File Name : ex21.sh
clear
echo
"Enter No : \c"
read
no
m=$no
rev=0
while
[ $no -gt 0 ]
do
r=`expr $no % 10`
rev=`expr $rev \* 10 + $r`
no=`expr $no / 10`
done
if
[ $m = $rev ]
then
echo " [ $m] is
Palindrome"
else
echo " [ $m ] is not
Palindrome"
fi
not working....
ReplyDeletethis wont work
ReplyDeletegood
ReplyDeleteVery informative article.Thank you author for posting this kind of article .
ReplyDeletehttp://www.wikitechy.com/view-article/c-program-to-check-armstrong-number-with-example-and-explanation
Both are really good,
Cheers,
Venkat