<>"Exchanging Oxygen and Carbon Dioxide. The primary function of the respiratory system is to exchange oxygen and carbon dioxide. Inhaled oxygen enters the lungs and reaches the alveoli. ... At the same time, a similar volume of carbon dioxide moves from the blood to the alveoli and is exhaled."<>