Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

square root in bash script

read -p "Enter a number: " number
square_root=`echo "scale=4; sqrt($number)" | bc`
echo "Square Root of $number is $square_root"
Source by www.tutorialsandyou.com #
 
PREVIOUS NEXT
Tagged: #square #root #bash #script
ADD COMMENT
Topic
Name
1+8 =