Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 10 - No. 41)

What is the purpose of using a `CASE OF` structure in an algorithm?
To perform multiple calculations.
To select one action from several choices.
To group and organize data.
To enable decision-making based on multiple conditions.

Explanation

The CASE OF allows code execution based on the value of a variable.

Comments (0)

Advertisement