Thursday, May 14, 2009

Example Do Loop

Example Do Loop


Do while counter <=1000

num.Text=counter

counter =counter+1

Loop


* The above example will keep on adding until counter >1000.

The above example can be rewritten as

Do

num.Text=counter
counter=counter+1

Loop until counter>1000

No comments:

Post a Comment