Create triangle.cpp