QUESTION 16
Write the Shell script that prompts the user to choose an arithmetic calculation and output the result.
1 - addition
2 - subtraction
3 - multiplication
4 - division
0 - Exit
The two input numbers are the external arguments that pass into the program when the program is run, e.g. user$>bash math.sh 45 running shell file
Sample output:
Addition of 4 and 5 is 9 //if 1 - Addition is chosen
For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac)