Answers for "how to add numbers in linux command line shell"

1

how to add numbers in linux command line shell

clear
echo Enter 1st number
read a
echo Enter 2nd number
read b
sum=$(( $a + $b ))
 
echo "Sum is: $sum"
Posted by: Guest on September-21-2021

Code answers related to "how to add numbers in linux command line shell"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language