Question: 1. Write a script in Bourne Shell that prints out the following table. Use a while loop to do so. t can be used with
1. Write a script in Bourne Shell that prints out the following table. Use a while loop to do so. \t can be used with echo to create a tab space.
| N | S |
| 1 | 1 |
| 2 | 4 |
| 3 | 9 |
2. Write a Bourne Shell script that uses a function that you write called cube (you need to write the body of the function in the script) that accepts a variable whose value is cubed and prints our this cubed value. The main part of the script will ask the user for an integer to be cubed and then call this function cube and giving it the integer to be cubed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
