Serupa tapi tak sama.
Dim Nilai, Akumulasi As Integer
Akumulasi = 0
Nilai = 0
Do
Nilai = Nilai + 1
Akumulasi = Akumulasi + Nilai
Loop While (Nilai < 10)
Note "Nilai akumulasi:" & Akumulasi
Dengan,
Dim Nilai, Akumulasi As Integer
Akumulasi = 0
Nilai = 0
Do
Akumulasi = Akumulasi + Nilai
Nilai = Nilai + 1
Loop While (Nilai < 10)
Note "Nilai akumulasi:" & Akumulasi
Hehe
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment