Mencari Faktorial 2-10!
Desaign ...Codingnya ,,,
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim i As Integer
For i = 10 To 2 Step -1
ListBox1.Items.Add(i & "!=" & i & "*" & (i - 1) & "*" & (i - 2) & "*" & (i - 3) & "*" & (i - 4) & "*" & (i - 5) & "*" & (i - 6) & "*" & (i - 7) & "*" & (i - 8) & "*" & (i - 9))
Next
End Sub
End Class
Hasilnya....
Selamat mencoba ,, semoga berhasil ....
0 comments:
Post a Comment