To develop the chemical formula of a substance or compound in this regard, one only needs to write the chemical symbol for each of the element present and write as subscript to each symbol the number of atoms of that element. For nitrobenzene, as described above, the chemical formula should be,
C₆H₅O₂N