Enter the first Number: <input name="txtNum1" type="text" value="0"> <br>
Enter the second Number: <input name="txtNum2" type="text" value="0"> <br><br>
Function addition (firstNum, secNum)
result = firstNum + secNum
End function
function subtraction (firstNum, secNum)
result = firstNum - secNum
End function
function multiplication (firstNum, secNum)
result = firstNum * secNum
End function
function division (fisrtNum, sectNum)
result = firstNum / secNum
end function
Select Case Operation
Case "Addition" <% result = addition (firstNum, secNum) %>
Case "Subtracion" <% result = subtraction (firstNum, secNum) %>
Case "Multiplication" <% result = multiplication (firstNum, secNum) %>
Case "Division" <% result = division (firstNum, secNum) %>
end select