Answer: The chemical formula of carbon dioxide is

Step-by-step explanation:
Chemical formula of any compound is the representation when elements combine with each other.
Carbon dioxide is a covalent compound and covalent compound is formed by the sharing of electrons between two elements that form a bond.
Electronic configuration of carbon:

Carbon need 4 electrons to complete its octet.
Electronic configuration of oxygen:

Oxygen need 2 electrons to complete its octet.
Hence, 2 oxygen atoms are required to complete the octet of 1 carbon atom. Hence, form a compound carbon dioxide
