Some good points have been made already. But if you're serious about improving climbing, two other things can help. One is to increase leg strength by off-the-bike weight training. The other is to spend some time riding in the big gears (ride in the big ring), even when you're not on the hills. This, too, can help strengthen the leg muscles.