Thursday, November 3, 2011

PROGRAM MENGHITUNG PANGKAT DENGAN VISUAL BASIC



TAMPILAN PROGRAM MENGHITUNG PANGKAT

 


KODE PROGRAM

Option Explicit
Dim X As Integer
Dim Y As Integer
Dim HSL As Long
Dim I As Byte

Private Sub Command1_Click()
    X = Val(Text1.Text)
    Y = Val(Text2.Text)
    HSL = 1
    For I = 1 To Y
        HSL = HSL * X
    Text3.Text = Str(HSL)
    Next
End Sub

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

Categories:

http://www.resepkuekeringku.com/2014/11/resep-donat-empuk-ala-dunkin-donut.html http://www.resepkuekeringku.com/2015/03/resep-kue-cubit-coklat-enak-dan-sederhana.html http://www.resepkuekeringku.com/2014/10/resep-donat-kentang-empuk-lembut-dan-enak.html http://www.resepkuekeringku.com/2014/07/resep-es-krim-goreng-coklat-kriuk-mudah-dan-sederhana-dengan-saus-strawberry.html http://www.resepkuekeringku.com/2014/06/resep-kue-es-krim-goreng-enak-dan-mudah.html http://www.resepkuekeringku.com/2014/09/resep-bolu-karamel-panggang-sarang-semut-lembut.html

Copyright © Catatan Anis Syarifah | Powered by Anis Syarifah