yazdmich

for loop

Oct 26th, 2012
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. var example : string
  2. example := "This is a test string"
  3.  
  4. for i : 1 .. length (example)
  5. put i % i is declared by using it in a for loop
  6. end for
  7.  
  8. % this program outputs each character stored in example on its own line
Advertisement
Add Comment
Please, Sign In to add comment