Given:
m = 3 x 10³⁶ kg, the mass of the star
r = 7.6 x 10⁵ km = 7.6 x 10⁸ m
Calculate the volume of the star (as the volume of a sold sphere).

Calculate the density the star.
By definition, the density of the star is

In g/cm³, the density is

Answer: 1.6315 x 10⁶ g/cm³