Form1
Private Sub Command1_Click()
Label4.Caption = Val(Text1.Text) + Val(Text2.Text)
End Sub
Private Sub Command2_Click()
Label4.Caption = Val(Text1.Text) - Val(Text2.Text)
End Sub
Private Sub Command3_Click()
Label4.Caption = Val(Text1.Text) / Val(Text2.Text)
End Sub
Private Sub Command4_Click()
Label4.Caption = Val(Text1.Text) ^ Val(Text2.Text)
End Sub
Private Sub Command5_Click()
Label4.Caption = Val(Text1.Text) * Val(Text2.Text)
End Sub
Input Angka 1 dan Angka 2. Setelah di input, pilih operator aritmatikanya.
Kemudian akan menampilkan hasilnya.