0% found this document useful (0 votes)
42 views2 pages

Koding Looping Di

This document contains code for a form with three buttons that each use a different looping structure - For, While, and Do Until - to add numbers between a starting and ending value entered by the user to a list. It includes the student's name, ID number, and class along with the project name of "Perulangan Desain Menu" and code for a class with three button click event handlers using the different loops.

Uploaded by

Ai ida
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

Koding Looping Di

This document contains code for a form with three buttons that each use a different looping structure - For, While, and Do Until - to add numbers between a starting and ending value entered by the user to a list. It includes the student's name, ID number, and class along with the project name of "Perulangan Desain Menu" and code for a class with three button click event handlers using the different loops.

Uploaded by

Ai ida
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Nama : Ai Ida Parida

NPM : 18401144
Kelas : KAT-R43/18

Nama Project : Perulangan


Desain Menu

Syntax
Public Class Form_Aiida

Private Sub button1_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
Dim i, d, a As Integer
i = [Link]
d = [Link]
For a = i To d
[Link](a)
Next a

End Sub
Private Sub Button2_Click(ByVal sender As [Link], ByVal e As
[Link]) Handles [Link]
[Link]()
Dim a, i As Integer
a = [Link]
i = [Link]
While (a <= i)
[Link](a)
a += 1
End While

End Sub

Private Sub Button3_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
Dim a, i As Integer
a = [Link]
i = [Link]
Do Until a > i
[Link](a)
a += 1
Loop
End Sub
End Class

You might also like