Solve problem 70 using C++.