I WILL MARK BRAINLIEST PLZ HELP
Consider the following algorithm. What number should the algorithm return at step 9?


Step 1: Have the user input an integer -- call it $n$.


Step 2: Add 4 to n.


Step 3: Multiply the sum by 3.


Step 4: Add n to this product.


Step 5: Divide this sum by 2.


Step 6: Add 4 to this quotient.


Step 7: Divide this new sum by 2.


Step 8: Subtract n from this new quotient.


Step 9: Output this difference.

Respuesta :

Answer:

Explanation:

BEGIN

DEFINE n,tmp, tmp1 type Integer

n = 0

DISPLAY "Enter a number"

INPUT n

tmp = n + 4

tmp = tmp * 3

tmp = tmp + n

tmp1 = tmp / 2

tmp = tmp1 + 4

tmp = tmp / 2

tmp = tmp - n

DISPLAY tmp

END