#!/bin/bash
echo "enter the length of the rectangle:"
read length
echo "enter the breadth of the rectangle:"
read breadth

area=$(echo "$length * $breadth" | bc)
peri=$(echo "2 * ($length + $breadth)" | bc)

echo "area of the rectangle:$area"
echo "perimeter of the rectangle:$peri"