Monday, September 20, 2010

Infobasic Loops - ForLoop

Use the For Loop to execute a set of statements repeatedly for specific number of times. The counted loop uses a variable to hold the iteration count. This commences at the start value for the loop is automatically incremented by a step value for each iteration. Once it has passed the end value, the loop terminates.

Example

FOR COUNTER = 1 TO 10
   CRT "TEMENOS GLOBUS" ;*The string TEMENOS GLOBUS will get printer 10 times
NEXT COUNTER

0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems