1 Addition of Two Number in Shell Script

Program:

 #!/bin/bash 
 
echo -n "Enter the first number : " 
read num1 
echo -n "Enter the second number : " 
 
read num2 
 
sum=$(( $num1 + $num2 ))
echo "sum of two value is $sum"

Output:



Previous
Next Post »