Computer Science – 11.1 Programming Basics | e-Consult
11.1 Programming Basics (1 questions)
Login to see all questions.
Click on a question to view the answer
Pseudo-code:
- Define a variable width.
- Define a variable height.
- Assign the value 5 to width.
- Assign the value 10 to height.
- Calculate the area: area = width x height.
Example:
| width = 5 |
| height = 10 |
| area = 5 x 10 |
| area = 50 |