We find the density by the formula p = m / V,
where m is the mass and V is the volume of the star.
The star is shaped like a ball.
The volume of the ball is found by the formula
V = 4/3 * n * R ^ 3,
and then p = 3m / 4nR ^ 3
p = 3 * 6Mc / 4 * 3.14 * 10 ^ 3 * R ^ 3; p = 18 * 2 * 10 ^ 30/4 * 3.14 * (7 * 10 ^ 8) ^ 3; p = 8.4 * 10 ^ 3 (kg / m3).
Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.