2. While Do
3.Repeat Until
- Contoh:
1. for i=3 to 10
print i
next
2. i = 1
while i <=10 do
print i
i = i +1
end while
3 i = 1 (vb.net)
do until i >10
print i
i = i +1
loop
i = 1
while 1<=10 do
A = i+2-1
print 4
i = i +1
end while
1 +3 +5
n=0
i= 1
while i <=10 do
4=1+2-1
n=n+4
i=i+1
end whhile
Tidak ada komentar:
Posting Komentar