Create problem18.cpp