title: Calculator with function Add concatenates result instead of addition
body: <p>I wrote some vbscript code for the following assignment: &quot;Develop a math calculator with the following functions: Add two numbers, Subtract, Multiply two numbers, Division, X to the Power of Y.Ask the user to enter two numbers using input boxes and also the operation to be performed. Display the result as a message.&quot;</p>
  <p>While running the code the addition function does not work as expected. It concatenates the numbers entered in the inputbox.
  Also the power function doesnt work either.
  Subtraction, multiplication and division work flawlessly. What could be the issue?</p>
  <pre><code>dim x, y, result, operation
  
  x = InputBox(&quot;Enter the first number: &quot;)
  y = InputBox(&quot;Enter the second number: &quot;)
  operation = InputBox(&quot;Enter the operation you want to perform: &quot;)
  
  if operation = &quot;Add&quot; then 
      WScript.echo(&quot;Your result is :&quot; &amp; Add(x,y))
  elseif operation = &quot;Subtract&quot; then 
      WScript.echo (&quot;Your result is : &quot; &amp; Subtract(x,y))
  ElseIf operation = &quot;Multiply&quot; Then
      WScript.echo (&quot;Your result is : &quot; &amp; Multiply(x,y))
  ElseIf operation = &quot;Divide&quot; Then
      WScript.echo(&quot;Your result is : &quot; &amp; Divide(x,y))
  ElseIf operation = &quot;Power&quot; Then
      WScript.echo(&quot;Your result is :&quot; &amp; Power(x,y))
  End if
  
  Function Add(inta, intb)
      Add = inta + intb
  End Function
      
  'subtract
  
  Function Subtract(inta, intb)
      Subtract = inta - intb
  End Function
  
  'multiply
  
  Function Multiply(inta, intb)
      Multiply = inta * intb
  end Function
  
  ' divide
  
  Function Divide(inta,intb)
      Divide = inta / intb
  end Function
  
  'power
  
  Function Power(inta,inb)
      Power = inta ^ intb
  end Function
  </code></pre>