Write the Lewis dot structure of molecule.
Step I: The outer valence shell configuration of carbon and oxygen atoms are:

Total number of valence electrons = 4 + 6 = 10
Step II. The skeletal structure of Carbon and Oxygen is CO.
Step III. Putting one shared pair of electrons between C and O and completing the octet on O, the remaining two electrons are the lone pair on C.
Step IV: In the above structure, octet of C is not complete. Hence multiple bonding is required between C and O. Octets of C and O will be complete if there is a triple bond between C and O.