Answer: The elements present are potassium, nitrogen and oxygen.
Step-by-step explanation:
Elements are defined as the substances in which same type of atoms are present. For Example: Sodium, Chlorine etc.
The chemical formula of the compound used in fireworks is
![KNO_3](https://img.qammunity.org/2019/formulas/biology/college/ghqo47xo1p66xsq84puud6afcswl8p766r.png)
The chemical name for the compound is potassium nitrate.
This compound is formed by the combination of three elements. In 1 mole of potassium nitrate, 1 mole of potassium atom, 1 mole of nitrogen atom and 3 moles of oxygen atoms are present.
Hence, the elements present are potassium, nitrogen and oxygen.