title: Store output of loop into string and return in method
body: <p>I have a method that draws a triangle using a loop that prints to the console each line. I require to change the modifiers to <code>public static string</code> instead of <code>public static void</code> so I require a return type of string. How could I manipulate my code so that the method returns a multi-lined string of the drawn shape?    </p>