two
Most millipedes are slower than centipedes and feed on leaf litter and loose organic material. They can be distinguished from centipedes by looking at the number of legs per body segment. Millipedes have two pairs of legs per body segment, while centipedes have a single pair of legs per body segment. Millipedes protect their eggs from predators by using a nest of hard soil. Millipedes are not poisonous. They lack the pair of fangs containing a poison gland that centipedes have.