Shell Script To Find The Area of Rectangle

This shell script accepts the length and breadth of a rectangle from the user and finds the area of Rectangle.


Area of Rectangle = Length x Breadth

Shell Script:

#Shell Script to find the area of rectangle

echo "Enter the length of the rectangle:"
read length
echo "Enter the breadth of the rectangle:"
read breadth

area=`expr $length \* $breadth`
echo "Area of Rectangle = $area"


Enter the length of the rectangle:
Enter the breadth of the rectangle:
Area of Rectangle = 300


Read More Post