Answer: Initially the stars are formed by gases, mainly hydrogen and helium. Star starts contracting due to their gravitational pull due to which the temperature of star rises and then pressure also rises. At high temperature and pressure, the fusion reaction of hydrogen takes place and lot of energy is emitted by the star.
Explanation: ummm look up ^