In American English, program is the correct spelling. In Australian English, program and programme are both acceptable. In British English, programme is the prefered spelling, although program is often used in computing contexts.
Decades ago, program appeared in American and British writing. In the nineteenth century, the Brits started to favor the French way of spelling it—programme.