How do you write CO2 correctly?

The 2 should be written as subscript... CO2