Electromagnetic radiation from sun is more likely produced by the nuclear fusion, and at a go radiation is released but how is it possible for different types of radiation to be produced such as, gamma, x-rays, UV, visible light, infrared, microwaves, and radio waves?
Please answer, and let me know, if my question makes sense or if I have any mistakes. In the answer please try to use least possible math, I'm just a high school student.