(a) Lower invertebrates: Sponges, coelenterates and flatworms exchange O2 with CO2 by simple diffusion over their entire body surface. They need no special respiratory organ.
(b) Earthworms and insects: Earthworms use their moist cuticle for the exchange of gases. Insects have a network of tubes, the tracheal tubes, which transport atmospheric air within the body.
(c) Aquatic and terrestrial forms: Most aquatic arthropods and molluscs use gills, special vascularised structures (branchial respiration). Terrestrial forms use lungs, vascularised bags (pulmonary respiration). So the respiratory surface suits whether the animal takes its O2 from water or from air.
(d) Vertebrates: Among vertebrates, fishes use gills, whereas amphibians, reptiles, birds and mammals respire through lungs. Amphibians like frogs can also respire through their moist skin (cutaneous respiration), in addition to their lungs.