title: Need help creating a simple maths quiz (Visual Basic)
body: <p>I'm a fairly new programmer and I'm looking for some help with my current task. I'm trying to create a program which generates 2 random numbers and a random operator, then ask the user to type in their answer. I think I've got this part done.</p>
  
  <p>However when I try to get the program to display the correct answer, it simply shows the problem and doesn't answer the question with the correct answer. </p>
  
  <p>Any help is much appreciated!</p>
  
  <pre><code>Module Module1
  
  Sub Main()
      Randomize()
      Dim RandomNum As New Random
  
      Dim Number1 As Integer
      Dim Number2 As Integer
      Dim Operation As Integer
      Dim Output As String
      Dim Answer As String
  
  
      Number1 = RandomNum.Next(1, 20)
      Number2 = RandomNum.Next(1, 20)
      Operation = RandomNum.Next(1, 4)
  
  
      If (Operation = 1) Then
          Output = " + "
      ElseIf (Operation = 2) Then
          Output = " - "
      ElseIf (Operation = 3) Then
          Output = " * "
      Else
          Output = " / "
      End If
  
  
      Console.WriteLine("What is " &amp; Number1 &amp; Output &amp; Number2 &amp; "?")
      Answer = Console.ReadLine()
  
      Console.WriteLine("Your answer is " &amp; Answer)
      Console.WriteLine("The correct answer is " &amp; Number1 &amp; Output &amp; Number2) &lt;------ Here is where the problem is
  
      Console.ReadLine()
  
  End Sub
  
  End Module
  </code></pre>