/*
 * File: for.txt
 * -------------
 */

/* Positive step. */
wln("for (i = 1, 5)");
for (i = 1, 5) {
    wln("  " + tostring(i));
}

/* Negative step. */
wln("for (i = 5, 1)");
for (i = 5, 1) {
    wln("  " + tostring(i));
}

/* Positive step of size 0.5. */
wln("for (i = 1, 5, 0.5)");
for (i = 1, 5, 0.5) {
    wln("  " + tostring(i, 1));
}

/* Negative step of size 0.5. */
wln("for (i = 5, 1, 0.5)");
for (i = 5, 1, 0.5) {
    wln("  " + tostring(i, 1));
}

/* Fill an array with numbers. */
for (i = 1, 10) {
    arr[i] = i*10 + i;
}

/* Access every element in the array through a reference, e. Note that the
   elements are not referenced in any specific order. */
wln("for (e: arr)");
for (e: arr) {
    wln("  " + tostring(e));
}

