Sabtu, 19 Maret 2016

LISTING PROGRAM MENGHITUNG FAKTORIAL ANGKA MELALUI VISUAL BASIC


Private Sub Command1_Click()
Dim a, b, i As Integer
i = 1
b = Text1.Text
For a = 1 To b
i = i * a
Next
Text2.Text = i
End Sub

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

Private Sub Command3_Click()
End
End Sub

Private Sub Text1_Change()

End Sub

FLOWCHART PROGRAM :


Tidak ada komentar:

Posting Komentar