Syntax
Meaning
VARIABLE
Capitalized, variables store a number.
Display
Prints information to the screen.
Set
Sets a VARIABLE equal to a number.
Input
Input a number to be stored in a VARIABLE.
Calculate
Performs mathematical operations.
display 5
5
set NUMBER = 21
display NUMBER
21
set NUM = 12
calculate RESULT = NUM * 2
display RESULT
24
Create pseudocode that calculates the area of a rectangle:
1. The user inputs a length 2. The user inputs a width 3. Calculate the area of a rectangle 4. Output the area of the rectangle
input NUM1
input NUM2
calculate RESULT = NUM1 *NUM2
display RESULT