Answer:
The height of the pyramid is 6 cm.
Explanation:
The volume of a square pyramid is given by:

Where:
: is the area of the base
h: is the height
Since the base edge length is equal to the height, the area of the base is:

Hence, the height is:


Therefore, the height of the pyramid is 6 cm.
I hope it helps you!