How does mass affect a star life cycle?
The smaller the mass of the star, the longer it lives.
If the star has smaller mass than the Sun, it can fuse hydrogen into helium for atleast a trillion years. The larger a star, the shorter its life because it fuses hydrogen into helium much more quickly. A star whose mass is more than 20 Suns will run out of hydrogen in only a few hundred million years.