Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

21. write a boolean expression that checks if age equals 18.

Question

  1. write a boolean expression that checks if age equals 18.

Explanation:

Step1: Use equality operator

In programming, the equality operator == is used to check if two values are equal.
age == 18

Answer:

age == 18