How long do massive stars live?
Less than a few million years...
The life of a star depends on how massive it is
Smaller stars live much longer compared to the massive stars, as they burn hydrogen(fusion) at a slower rate.
On the other hand, massive stars burn their fuel so fast, that they live shorter than the smaller star.
Our Sun a middle sized star can burn the fuel up to 10 billion years