Create Exercise2_18.cpp