what 2 things does the formula of a compound tell us?

I'm not sure if I'm right, but this is what I wrote:

The formula for the compound tells you that it is two parts hydrogen and one part oxygen. The compound carbon dioxide is one part carbon and two parts oxygen.

3 answers

The formula tells you the elements in a compound, and how much of each element.
Thank You:-)
thx