Perulangan Bersarang














Public Class Form1


    Private Sub xnilai_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xnilai.TextChanged
        Dim x As String = ""
        xhasil.Text = ""
        For i = 1 To Val(xnilai.Text)
            x = ""
            For j = 1 To i
                x = x & i
            Next
            xhasil.Text = xhasil.Text & x & vbCrLf

        Next

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub
End Class

Share this

Related Posts

Previous
Next Post »

2 komentar

Write komentar
7 December 2016 at 12:35 delete

coba diperhatikan baik baik code nya sist

Reply
avatar

Terimakasih Atas Komentar Anda....!!! :) EmoticonEmoticon