How do I program 3 servo motors simultaneously but moving differently

I am new at arduino and I'm trying to figure out how to program three servo motors to move simultaneously but move differently?? Also is one 9v battery plugged into the the 5v enough to power 2 LEDs and 3 servo motors

Do not power the servos from the arduino 5v pin.
They pull more current than the on board voltage regulator can supply.

Look at this pic. Servos powered from an external supply.
Grounds connected.


Note that those ‘transistor radio’ style 9v batteries are not able to provide much current at all.

Use that method to power one servo. Then load up the servo sweep tutorial and make sure you get that working. Then try all 3 servos.

Take a look at Robin's Several Things a the Same Time tutorial.