Create ex5_12.cpp