Visual Basic.NET. Berikut langkah-langkahnya;
1. Buka aplikasi VB.NET dan buat desain seperti dibawah ini
2. Jika sudah masukkan kodingan seperti dibawah pada setiap button
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Close()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Dim A As Integer
Dim B As Integer
Dim C As Integer
A = TextBox1.Text
B = TextBox2.Text
C = A + B
TextBox3.Text = C
C = A - B
TextBox4.Text = C
C = A * B
TextBox5.Text = C
C = A / B
TextBox6.Text = C
C = A \ B
TextBox7.Text = C
C = A ^ B
TextBox8.Text = C
C = A Mod B
TextBox9.Text = C
End Sub
End Class
3. Jika sudah maka RUN program. dan berikut hasilnya;
0 komentar:
Posting Komentar