Mr. Simon started out writing for television and later wrote for the movies, but his plays were his biggest successes, among them "The Odd Couple" and "Barefoot in the Park."