Written by Sai Sandeep Thota on April 16, 2013 in Programming > Shell

Shell Script to find Side of a Square

GET ALERTS:

Get our Latest updates delivered to your mailbox!

Shell Script to find side of a square is just squaring the given number. The actual formula of side of a square is side*side.

echo "Enter side of a Square:"
read s
echo "Area of Square: ` expr $s \* $s `"

Output:square

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: