Code for problem 26A.