Code for problem 80.