answersLogoWhite

0

echo "Enter number:"

read num

r=0

d=0

a=$num

while [ $num -gt 10 ]

do

d=`echo $num % 10 |bc`

r=`echo $r \* 10 + $d |bc`

num=`echo $num / 10 |bc`

done

d=`echo $num % 10 |bc`

r=`echo $r \* 10 + $d |bc`

if [ $a -eq $r ]

then

echo "given number is polindrome"

else

echo "given number is not polindrome"

fi

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Write a Shell program to find the smallest number from a set of numbers?

k


Write a Shell program to find the sum of cube of individual digits of a number?

no thanks


Write a program in shell script to display odd number from 0 to 100?

seq 1 2 99


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


Write a shell program to check and display 10 leap years?

dono


Write a shell program to delete all the files in the current directory?

in winxp del *.* /Q /S


Shell program to find the smallest digit of a given number?

syntax error


Write a shell program called whos to display a sorted list of the logged in usersJust display the user names and no other information?

The 'users' command should do that; you don't need to write a shell script to get that information in that format.


Write a Shell program to find the area and circumference of a circle?

echo "Enter the Number" read n r=`expr $n % 2` if [ $r -eq 0 ] then echo "$n is Even number" else echo "$n is Odd number" fi


Write a shell program using if-the-else to test whether a variable name is a directory or a file?

see : Write_a_shell_program_using_the_if-the-else_to_test_whether_a_variable_name_is_a_directory_or_a_file


Write a shell program to translate the6 etcpasswd file into uppercase?

tr [:lower:] [:upper:] < /etc/passwd > somefile


Write a shell script that counts a number of unique word contained in the alphabetical order line by line?

use python, shell is stupid

Trending Questions
What do meerkat died at? Why dont some faxes go through? How do i insert a picture from file? You have trojanstartpage virus in avpccdll file you can't delete this file as it says file is being used by windows Pls help? How to write leave letter for grandmother died? How do you download videos from YouTube any shortcut key from keyboard? What is the difference between MS windows from graphical user interface? What standards were designed to help manage connections between wireless devices and access points? What is the subnet of 66.237.178.241? How long does it take to install fiber optic cable? Can you grant global access to a sharepoint site and just restrict document access from a folder? What does it mean when you turn on your Acer laptop and it say a disc error occurred press ctrl plus alt plus del to restart but when you do it goes back to the same thing? There is an antivirus software trying to be installed in my computer How do you remove it. The name of the antivirus software is Personal antivirus. I cannot see it in the control panel? What does MB mean in barometer wise? Select the most logical way for the 8201 operations section chief to organize and manage the single resources task force and strike teams at this incident? Is it possible to install android 4.1 on nokia n8 smart phone? What are the benefits of using validation rules? Are the numbers in a column aligned at the center? Where to get cheap compaq presario sr220nx? What is the best place to purchase ink cartridges for the Lexmark printer?