Practical No. 3: Implement A Message Box Program & Arithmetic Expression
Practical No. 3: Implement A Message Box Program & Arithmetic Expression
End Class
Output :
2. Write a program using InputBox(), MsgBox()
& perform various arithmetic expression.
Code :
Public Class Form1
Dim a As Integer
Dim b As Integer
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
Dim Sum As Integer
a = InputBox("Enter the value of a :")
b = InputBox("Enter the value of b : ")
Sum = a + b
End Sub
Subtraction = a - b
Multiply = a * b
Div = a / b
Output :