x
) and multiplies it by the value of a second input (y
). Finally, there is an if condition which checks if the value calculated is greater than the value of an external variable(z
), and returns "success" if true, else returns "fail". The equation for this operation will be (x * y) > z
.x
and y
(input variables) which satisfy the corresponding equation. As is the case for global variables, their value can be changed from outside this function, which may lead to different outputs whenever this function is executed. This adds to additional complexity in determining correct solution.