Pemprograman VB Dot Net

Present by: Johanes Fernandes Andry Session 5 : Latihan For-Next & Do-Loop

1

Latihan Session 5 2 .

Hasil Tombol Bilangan Ajaib 1 3 .

Hasil Tombol Bilangan Ajaib 2 4 .

ByVal e As System.Add(SP & A) Case N For C = 1 To (N * 2) .1 If C <= N Then SP = SP & C & " " Else SP = SP & ((N * 2) .Items.Clear() For A = 1 To (N * 2) .A)) End Select Next End Sub Sub spasi() Dim P As Integer For P = 1 To K SP = SP & " Next End Sub " 5 .Add(SP & ((N * 2) .Items.Items.Object.1 SP = " " Select Case A Case 1 To K Call spasi() ListBox1.Items.Coding Bilangan Ajaib 1 Public Class Form1 Dim K As Integer Dim SP As String Private Sub Btn_Ajaib1_Click(ByVal sender As System.Add(SP) Case (N + 1) To (N + K) Call spasi() ListBox1. B.C) & " " End If Next ListBox1. N As Integer N = InputBox("ketik batas bilangan") K=N-1 ListBox1.Click Dim A. C.EventArgs) Handles Btn_Ajaib1.

1 To 1 Step -1 teks &= C Next ListBox1.Load End Sub 6 .Add(Space(N .Add(Space(N .Items.EventArgs) Handles Btn_Ajaib2.Object.Items.A) & teks) teks = "" Next sw = 0 Else For A As Integer = N .1 To 1 Step -1 teks &= C Next ListBox1.A) & teks) teks = "" Next cek = False End If Loop End Sub Private Sub Form1_Load(ByVal sender As System.1 To 1 Step -1 For B As Integer = 1 To A teks &= B Next For C As Integer = A . ByVal e As System.Click Dim teks As String Dim N As Integer Dim cek As Boolean = True Dim sw As Byte = 1 ListBox1.Items.EventArgs) Handles MyBase.Object.Clear() N = InputBox("inputkan suatu bilangan") Do While cek If sw = 1 Then For A As Integer = 1 To N For B As Integer = 1 To A teks &= B Next For C As Integer = A . ByVal e As System.Coding Bilangan Ajaib 2 Private Sub Btn_Ajaib2_Click(ByVal sender As System.

Hindi Simplified Chinese Hebrew Russian Th an k Yo u English Gracias Spanish Arabic Terima Kasih Obrigado Brazilian Portuguese Grazie Italian Da n k e M erci French Korean German Japanese Thai Traditional Chinese Tamil 7 .

Sign up to vote on this title
UsefulNot useful