expr calculates. Give it a sum, and it writes the answer.
expr 6 \* 7you type
Enter
42the computer writes
exprcalculate6number\*times7number
Put a space before and after the sign. Write \* to multiply: on this computer, * alone has a different job (Chapter 5 explains it), and the backslash \ makes sure that the * gets to expr unchanged.
- What is 12 times 12?
- What is 250 plus 175? This page does not show the sign for plus. Make a guess.
- Think before you type: what does
expr 19+23write?