Question: Question 6 ( 1 point ) Identify the problem with the following program: if Condition 1 then Light 1 : ( = 1
Question point
Identify the problem with the following program:
if Condition then
Light : ;
endif;
Once it has turned ON the light will never turn OFF
An if construct always requires an "else"
It should be "Light; and not :
There should be a semicolon after "then"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
