How do I input one character and one integer to get a triangle answer?
<p>so i came up with this but it only prints in a straight line not triangle, i want it to look like a triangle</p>

<p>this is my code</p>

<pre><code>        string character;
        int width;
        Console.WriteLine("Enter a number");
        width = Convert.ToInt32(Console.ReadLine());

        Console.WriteLine("Enter a character");
        character = Console.ReadLine();
         int size = width, i = size;
        while (Math.Abs(--i) &lt; size)
            Console.WriteLine( character, size - Math.Abs(i));
        Console.ReadLine();
</code></pre>
