Answer :

CO2. An ionic compound is a metal and a nonmetal.