Solve problems 42-43,52 using C++.