Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fellipecaetano/4880371303e4038254260ec4b516faae to your computer and use it in GitHub Desktop.
Save fellipecaetano/4880371303e4038254260ec4b516faae to your computer and use it in GitHub Desktop.
a = 0
for i from 1 to 3 // loop three times
{
a = a + i // add the current value of i to a
}
print a // the number 6 is printed (0 + 1; 1 + 2; 3 + 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment