Menu

[solved]-Task 6 Using Variables Write Bash Script Takes 2 Integer Variables Outputs Sum Product Dif Q39009698

Task 6- Using Variables: Write a bash script which takes 2 integer variables and outputs their sum, product, and difference.

*****IN LINUX

Task 6- Using Variables: Write a bash script which takes 2 integer variables and outputs their sum, product, and difference. Call the script variables.sh, it would be used like this: tux@LinuxBox>./variables.sh 11 Sum: 2 Product: 1 Difference: 0 Assume that the user will always enter correct arguments, in other words you don’t have to worry about error checking. Submit both your code and a screenshot demonstrating that the script functions correctly. Show transcribed image text Task 6- Using Variables: Write a bash script which takes 2 integer variables and outputs their sum, product, and difference. Call the script variables.sh, it would be used like this: tux@LinuxBox>./variables.sh 11 Sum: 2 Product: 1 Difference: 0 Assume that the user will always enter correct arguments, in other words you don’t have to worry about error checking. Submit both your code and a screenshot demonstrating that the script functions correctly.

Expert Answer


Answer to Task 6- Using Variables: Write a bash script which takes 2 integer variables and outputs their sum, product, and differe… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *