I have a code to find the area of a rectangle by giving the width and height.
echo -n "Enter width: "
read width
echo -n "Enter height:"
read height
echo "Area of rectangle $(echo "$height*$width" | bc) sqcm"
How can I make it so that only a number can be entered and, otherwise, an error display?