Area is a FUNCTION that takes two integers and returns an INTEGER. A student writes four statements.
// Statement 1
Size ← Area(4, 5)
// Statement 2
OUTPUT Area(4, 5)
// Statement 3
CALL Area(4, 5)
// Statement 4
IF Area(4, 5) > 10
THEN
OUTPUT "Large"
ENDIF
Which statement is wrong?Log in to join the discussion.
Loading…