Let's find the Molar mass of Carbon=12.

Molar mass of Hydrogen=1.

Molar mass of Oxygen=16.

Mass of CH_{2}O=12+2(1)+16=30.

Molecular weight of compound given is 180.

So, the molecular weight is 180/30 =6.

⇒ Molecular formula of compound is C_{6}H_{12}O_{6} .