The shorthand way to write a compound is by using chemical formulas or symbols. For example, water is written as H2O, where "H" represents hydrogen and "O" represents oxygen. Another compound, carbon dioxide, is written as CO2, where "C" represents carbon and "O" represents oxygen.