Have to make a program that makes a pyramid
<p>I have gotten the basics but how do I input the number of spaces in each row?</p>

<p>This is what Ive done so far:</p>

<pre><code>Sub Main()
    Dim var As Char
    Dim numberofsymbols As Integer

    Console.WriteLine("what variable do you want to use to form a pyramid?")
    var = Console.ReadLine

    Console.WriteLine("what number of symbols do you want to start with? (odd number)")
    numberofsymbols = Console.ReadLine()

    'taking numberofsymbols as 5

    Console.Write("   ")
    Console.Write(var)


    Console.WriteLine()
    Console.Write("  ")


    For x = 1 To numberofsymbols - 2
        Console.Write(var)
    Next

    Console.WriteLine()
    Console.Write(" ")


    For x = 1 To numberofsymbols
        Console.Write(var)
    Next

    Console.ReadKey()

End Sub
</code></pre>

<p>The output Im getting is </p>

<pre><code>    A

   AAA

  AAAAA
</code></pre>

<p>Im not checking in my program to see if it is a odd number/one character , how should I go about making this program if the user chooses some random odd number?</p>

<p>I know that ill have to use a repeat until loop for that but then how do I input the number of spaces in a loop like that?</p>