#include // file: tree.cc // using user-defined functions // "draws" a tree void Trunk() { cout << " * " << endl; cout << " * " << endl; } void Dia() { cout << " * " << endl; cout << " *** " << endl; cout << " ***** " << endl; cout << "*******" << endl; } int main() { Dia(); Trunk(); return 0; } Sample output: * > *** > ***** >******* > * > *