Answer :

Mars and Earth are the 2 inner planets that have water in the form of ice. 
Mars and Earth are the two inner planets that have water in the form of ice.