Consider the following pseudocode:
FUNCTION CalculateArea(length, width)
IF length <= 0 OR width <= 0 THEN
RETURN 'Invalid input'
ELSE
RETURN length * width
ENDIF
END FUNCTION
What is correct about this pseudocode function?Consider the following pseudocode:
FUNCTION CalculateArea(length, width)
IF length <= 0 OR width <= 0 THEN
RETURN 'Invalid input'
ELSE
RETURN length * width
ENDIF
END FUNCTION
What is correct about this pseudocode function?Create a free account to access the full topic