// Number of terms of the Fibonacci sequence to print (minimum 2). let n: int = 16; let mutable t0: int = 0; // First term in the Fibonacci sequence let mutable t1: int = 1; // Second term in the Fibonacci sequence println(t0); println(t1); let mutable i: int = 2; // Counter: how many terms we printed let mutable next: int = 0; // Next term in the Fibonacci sequence while (i < n) do { next <- t0 + t1; println(next); t0 <- t1; t1 <- next; i <- i + 1 }