To solve this concept we will apply the mathematical equations concerning the calculation of Volume in a sphere and the relation of density as a function of mass and volume, that is
The volume of the neutron star is
Now the density of the neutron star is
Therefore the density of the neutron star is