Centipedes have one pair of legs per body segment and are carnivorous, while millipedes
have two pairs of legs per body segment and are herbivorous.