Periodic Solutions of Pendulum-Type Equations