Problem

In this project, you employ the let command to practice using arithmetic operators to se...

In this project, you employ the let command to practice using arithmetic operators to set the contents of a shell variable. First, you use an expression with constants (no variables), and then you use an expression containing a variable.

To practice using the arithmetic operators:

1. Type let X=10+2*7 and press Enter.

2. Type echo $X and press Enter. You see 24 on the screen.

3. Type letY=X+2*4 and press Enter.

4. Type echo $Y and press Enter. You see 32 on the screen, as shown in Figure 6-7.

5. Type clear and press Enter to clear the screen for the next project.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search