The sun is a hot plasma (ionized matter) with its inner core

The sun is a hot plasma (ionized matter) with its inner core at a temperature exceeding 107 K and its outer surface at a temperature of about 6000 K. At these high temperatures, no substance remains in a solid or liquid phase.
In what range do you expect the mass density of the Sun to be, in the range of densities of solids and liquids or gases? Check if your guess is correct from the following data.
Mass of the Sun = 2.0 x ${{10}^{30}}$ kg and radius of the Sun = 7.0 x ${{10}^{8}}$m.

Given, mass of the sun (M) = 2.0 X ${{10}^{30}}kg Radius of the sun = 7.0 x {{10}^{8}}$ m

This density is of the order of density of solids and liquids and not of gases.
The temperature of inner core of the sun is 107 K while the temperature of the outer layers is nearly 6000 K. At so high temperature, no matter can exist in its solid or liquid state.
Every matter is highly ionised and present as a mixture of nucleus, free electrons and ions which is called plasma. The density of plasma is so high due to inward gravitational attraction on outer layers due to inner layers of the sun.