## Shell Script to swap values in two variables x and y

in Categories Shell Math last updated April 9, 2008

## Shell script to find whether an input number is palindrome or not

in Categories Academic, Shell Math last updated April 12, 2008

A palindrome is a word, phrase, number or other sequence of units that has the property of reading the same in either direction (the adjustment of punctuation and spaces between words is generally permitted). Composing literature in palindromes is an example of constrained writing. The word “palindrome” was coined from Greek roots palin (“back”) and dromos (“way, direction”) by English writer Ben Jonson in the 1600s.

A palindromic number is a number where the digits, with decimal representation usually assumed, are the same read backwards, for example, 58285. They are studied in recreational mathematics where palindromic numbers with special properties are sought. A palindromic prime is a palindromic number that is a prime number.

## Shell program to read a number and find the sum of digits

in Categories Academic, Shell Math last updated April 8, 2008

## Shell program to read a number and reverse the number

in Categories Academic, Shell Math last updated April 8, 2008

## Shell program to calculate the number of digits in a number read from the user

in Categories Academic, Shell Math last updated April 8, 2008

## Shell script to read 5 digit number and calculate the sum of digit

in Categories Shell Math last updated April 4, 2008

## Shell Script Calulate Area and Circumference of Circle

in Categories Shell Math last updated April 4, 2008

A circle is one of the simple shapes of Euclidean geometry. It is the locus of all points in a plane at a constant distance, called the radius, from a fixed point, called the center. Through any three points not on the same line, there passes one and only one circle.

A diameter is a chord passing through the center. The length of a diameter is twice the radius. A diameter is the largest chord in a circle.

Circles are simple closed curves which divide the plane into an interior and an exterior. The circumference of a circle is the perimeter of the circle, and the interior of the circle is called a disk. 