The Lewis structure of carbon dioxide is shown in the image attached.
The Lewis structure of carbon dioxide
By adding two carbon atoms through double bonds, dispersing the remaining electrons to satisfy the octet rule for oxygen and the duet rule for carbon, and measuring the total number of valence electrons, the Lewis structure of carbon dioxide is created.
The final structure shows two oxygen atoms double-bonded to carbon in the center of a linear arrangement. In turn, every oxygen has two lone pairs of electrons.
This illustration sheds light on the bonding arrangement and electron distribution in carbon dioxide, an important molecule involved in a number of chemical and environmental processes.