W = [ (A + B) ( Z - 2 ] * 3) / ( X + 3 )
No.
The "square brackets" [] and the parentheses
() are mixed up.
A left-[ has to match a right-], but now one of the inside parentheses
has no other inside parentheses to match:
W = [ (A + B) ( Z - 2 ] * 3) / ( X + 3 )
======= ? ? =========
-------------------
Look at the following QBasic program:
PRINT "Enter the number of repeats"
INPUT LIMIT
IF LIMIT < 0 THEN
PRINT "Number must be zero or greater"
ELSE
LET COUNT=1
DO WHILE COUNT <= LIMIT
IF COUNT < LIMIT / 2 THEN
PRINT "Hello"
ELSE
PRINT "Mars"
END IF
LOOP
PRINT "Done"
END IF
END
The program uses correct syntax:
In the above program, find the matching END IF for
the IF that starts the statement:
IF COUNT < LIMIT / 2 THEN
(Hint: use the indenting to help.)