Sunday, August 4, 2019

basic operator in vb6



Private Sub Form_Load()
Dim a, b, c, d, e, f As Integer
a = 5
b = 4
c = a + b

d = a - b

e = a * b

f = a / b

MsgBox ("sum=" & c & vbCrLf & "differnce=" & d & vbCrLf & "multiplication=" & e & vbCrLf & "division=" & f)


End Sub


output


No comments:

Post a Comment