Create exercise3.23.cpp