Lifestyle factors such as smoking, diet, physical activity, and alcohol consumption play a significant role in cancer outcomes. For instance, quitting smoking can improve the prognosis for lung cancer patients. Maintaining a healthy diet and regular exercise can also contribute to a better overall prognosis by strengthening the immune system and improving general health.