Print a triangle: one star on the first line, two on the second, and so on down to n. Use no spaces.
void triangle(int n)
Examples
There are also 2 hidden tests you can't see. Solve the problem, not the examples.