In photosynthesis, carbon dioxide reacts with water to form sugar and oxygen. Which of the compounds from photosynthesis is organic

A.carbon dioxide
B.sugar
C.water
D.oxygen