Which factor contributed to Napoleon's rise to power in France?

A. people were unhappy with the living conditions caused by the industrial revolution
B. monarchs in Europe were forced to recognize the natural rights of their citizens
C. the reign of terror left the government weak
D. a standardized code of laws was applied across the country

D. a standardized code of laws was applied across the country