VBScript to perform the arithmetic operations
kw.vbs
num1 = CInt(InputBox("Enter 1st Number "))
num2 = CInt(InputBox("Enter 2nd Number "))
If num2 = 0 Then
    MsgBox "Denominator should be greater than 0 for Division(Ans=Infinity)"
Else
    MsgBox "Addition: " & num1 + num2 & vbCrLf & "Subtraction: " & num1 - num2 & vbCrLf & 
    "Multiplication: " & num1 * num2 & vbCrLf & "Division: " & num1 / num2
End If
Output

Advertisement