Please include comments in code!
Write a C++ program that 1. 2. Includes a function printChar(int n, char c) that outputs n copies of a given symbol c. Includes a function printTriangle(int n, char c, bool o) that uses function printChar to output an isosceles triangle that has both its base and height of length n using symbol c. If the last parameter o is true, then the triangle is shown upside down. Includes
OR
OR