For this case, the first thing you should know is that the density is defined as:
D = m / v
Where,
m: mass
v: volume
We have then that for this problem the appropriate units are:
For the mass m: grams
For volume v: cubic centimeters.
Therefore, the density unit will be:
D [g / cm ^ 3]
Answer:
D [g / cm ^ 3]