What is the purpose of a countermeasure under international law?

A. To resolve a dispute between two states through diplomatic means
B. To punish a state for a past wrongdoing
C. To prevent a state from taking a future action
D. To induce a state to comply with its legal obligations after an internationally wrongful act
Answer: 