The easiest way is to go to Settings>General>Use Side Switch To:, then select the lock rotation option. Once done, move the slide switch on the side of the iPad above the volume buttons down, so that the red dot is exposed. This will prevent the screen from rotating when you turn the iPad.