Write a Shell Script that enters two numbers and perform all mathematical operations on those

Code:

Echo “Enter Value Of A: “
Read Value1
Echo “Enter Value Of B: “
Read Value2
Add =$(($Value1 + $Value2))
Echo “Answer For Sum is: “ $Add
Minus=$(($n1 - $n2))
Echo “Answer For Subtraction is: “ $Minus
Mul=$(($n1 * $n2))
Echo “Answer For Multiplication is : “ $Mul
Div=$(($n1 / $n2))
Echo “Answer For Division is : “ $Div

Post a Comment

0 Comments