Valence electrons are the electrons present in the outermost shell of an atom.
The atomic numbers of cabon, nitrogen, oxygen respectively are 6, 7 and 8. ElementAtomic no.Electronic configurationNo. of valence electronsCarbon 62,44Nitrogen72, 55Oxygen82, 66