The writer behind hits like The Odd Couple and Barefoot in the Park, known for his zany characters and comic dialogue, won over two dozen nominations for Tonys, Emmys and Oscars.