Answer:
The answer is operant conditioning.
Step-by-step explanation:
Operant conditioning is an approach to learning psychology which intends to understand to movation behind individual behaviour. Is states that people are more likely to repeat an action when it is reinforced.
In the example, you continue visiting the vending machine because your behaviour is positively reinforced, whch means you get a reward after a certain action is completed.