Question: Put # ! / bin / bash in the first line ( interpreter line ) of the program. Define three integer variables named as FirstSum,
Put #binbash in the first line interpreter line of the program.
Define three integer variables named as FirstSum, SecondSum, and Product.
Create the first function named Sum which will read in two arguments, add the values of two arguments, and then return the sum of these two arguments.
Create the second function named Multiplication which will read in two arguments, then multiply the values of two arguments, and then return the product of these two arguments.
Call function Sum with two arguments as and and assign the result to a variable named FirstSum.
Call function Sum with two arguments as and and assign the result to a variable named SecondSum.
Call function Multiplication with the values of First Sum and SecondSum.
Exit.the script.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
