TotalCodes
Menu
Android
Data Structure
Oracle(PL/SQL)
Shell Scripts
Monday, 27 May 2013
Shell Script for area of triangle
echo "Enter the length and Breadth of rectangle:"
read n1
read n2
area=$(($n1*$n2))
echo "Area of rectangle is "$area
echo -n "Enter radius of the Circle:- "
read r
echo -n "Area of Circle is "
carea= echo "3.14 * $r * $r" | bc
echo $carea
1 comment:
Shruti Banerjee
21 October 2021 at 20:29
area of triangle not calculated here
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Home
Subscribe to:
Post Comments (Atom)
area of triangle not calculated here
ReplyDelete