Как добавить числа в оболочке командной строки Linux
clear
echo Enter 1st number
read a
echo Enter 2nd number
read b
sum=$(( $a + $b ))
echo "Sum is: $sum"
Tame Tiger
clear
echo Enter 1st number
read a
echo Enter 2nd number
read b
sum=$(( $a + $b ))
echo "Sum is: $sum"