Create exercise1.22.cpp