?

AP® Computer Science Principles

Free Version

Upgrade subject to access all content

Easy

Equation Procedure

APCSP-KSMEXK

Use the following code segment to answer this question.

PROCEDURE equation (a, b, c) 
{
    x ← a \* b
    y ← a - c
    z ← x/y
    answer ← c \* z
    RETURN (z)
}

What would be the output of the equation procedure when $a$ is 9, $b$ is 10, and $c$ is 4?

A

18

B

72

C

-72

D

360