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"
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"
bash sum numbers
num1=1232
num2=24
num3=444
sum=$((num1+num2+num3))
echo $sum # prints 1700
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us