Find the area of a circle ? |Shell Program|

 #!/bin/bash
echo "Enter the radius"
read r
area=$(echo "scale=2;3.14*($r*$r)"|bc)
echo "area of circle=$area"



OUTPUT

Enter the radius
5
area of circle=78.50

Post a Comment

0 Comments