Loops/Foreach: Difference between revisions

m
(Added Hy)
Line 2,044:
 
=={{header|VBScript}}==
<lang vbscript>dim items = Array(2"Apple", "Orange", "Banana")
items(0)="Apple"
items(1)="Orange"
items(2)="Banana"
 
For Each x inIn items
WScript.Echo x
Next</lang>
 
Anonymous user