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

In the context of an algorithm, what is the function of an 'IF...THEN...ELSE' structure?
To make a decision based on a condition.
To create a loop.
To assign a value to a variable.
To perform an arithmetic operation.

Explanation

An IF statement performs a decision based on whether a given condition is true.

Comments (0)

Advertisement