Create exercise3.14.cpp