Answer :

Hammurabi decided to make the code because of 2 things:
1. He wanted that the "strong might not injure the weak"
2. he wanted to be Powerful during his kingship

Other Questions