Why is CO^2 required by plants to produce glucose?

( the arrow pointing up should be pointed down.)

CO2 is where the Carbon comes from to make sugar.Glucose is a six-carbon sugar represented by the formula C6H12O6