Step-by-step explanation:
The density of a substance is given by :~ ρ = m/v
where:
ρ is the density
m is the mass
V is the volume
as the given values for the variables {mass, volume} are in the same system (CGS) unit conversation is not required :
by replacing in formula : p = 10(gm)/5cm^3
=> 2gm/cm^3