Homeunix Bash program to check if the Number is a Palindrome Vikram somai January 24, 2021 0 Comments Facebook Twitter Bash program to check if the Number is a Palindromeclearecho "enter a number"read numn=$numrev=0while [ $num -gt 0 ]dor=$(( $num % 10 ))rev=$(( $rev * 10 + $r ))num=$(( $num / 10 ))doneif [ $n -eq $rev ]thenecho "palindrome number"elseecho "not palidrome"fioutput:- Tags unix Facebook Twitter
Post a Comment
If you have any doubts, Please let me know
Thanks!