ex1-1-4.cpp