Create exercise3.15.cpp