Green plants make food with the help of water, carbon dioxide in the presence of sunlight. Water is taken by roots and sent to leaves. Carbon dioxide is taken in by leaves through tiny holes on their undersurface called stomata. Sunlight is trapped by chlorophyll. Oxygen gas is released as an end product.