Code for problem 337C.