Code:
Echo “Enter first number:” Read n1 Echo “Enter Second number:” Read n2 Echo “Enter operation to be carried out that is +, - , / or X” Read opr If [ opr==”+” ] Then echo $(( $a + $b )) elif [ opr==”-“] then echo $(( $a - $b )) elif [ opr==”/” ] then echo $(( $a / $b )) elif [ opr==”X” ] then echo $(( $a * $b )) fi
thnx and regards
Comment