Computer Science for IGCSE & O level - Programming (Section 9 - No. 38)

If the 'age' input is 20, what output will the following code produce? ``` IF age >= 17 THEN Print "You are an adult" ELSE Print "You are a child" ENDIF ```
You are a child
You are an adult
The program will crash.
No output

Explanation

Since the condition (age >= 17) is true, the "You are an adult" message will be printed.

Comments (0)

Advertisement