Two atoms may share two pairs of electrons, a double bond, drawn as two lines, or three pairs, a triple bond, drawn as three lines.
Examples
Example 24.7 (Carbon dioxide)
: valence electrons, 8 pairs. Single bonds use 2 pairs; 6 lone pairs on the oxygens complete them, but carbon then has only 4 electrons. Turning one lone pair of each oxygen into a shared pair gives two double bonds: each atom now has an octet.