Create ex12.cpp