A star produces energy by:
A. expanding and contracting its magnetic field.
B. creating sunspots and releasing coronal ejections.
C. combining two atoms to form a larger atom, releasing energy.
D. splitting atoms apart, releasing energy in the form of photons.