The Lewis structure of $CO$ is shown in the attached image.
Work Step by Step
Carbon has 4 valence electrons, and oxygen has 6 valence electrons. Carbon forms a triple bond with oxygen to complete its octet. There is a lone pair of electrons on both carbon and oxygen. The Lewis structure is shown in the attached image.