A procedure changes a global variable, and it also has a local one.
DECLARE Coins : INTEGER
PROCEDURE Collect(Found : INTEGER)
DECLARE Extra : INTEGER
Extra ← Found * 2
Coins ← Coins + Extra
ENDPROCEDURE
Coins ← 3
CALL Collect(4)
CALL Collect(1)
OUTPUT Coins
What is output?