This is how I would do it.
5 servo, 5 pot algorithm
declare and assign array of 5 servo pins
declare and assign array of 5 pot pins
declare array of 5 servos
in setup
loop through 5
attach each servos
set each pot pins as inputs
in loop
loop through 5
read a pot
servo.write the mapped pot value
But seriously, start out with the knob tutorial.