What century were cannons first used in war?

Question: What century were cannons first used in war?

Choices:

12th century
13th century
5th century
15th century

Correct answer:

13th century