5 local n = system.argv.len() > 1 ? system.argv[1].tointeger() : 4
\r
7 println("fib(%d) = %d".fmt(n, function(value)
\r
9 local last_value = 0;
\r
10 local this_value = 1;
\r
11 local new_value, count;
\r
16 for (count=1; count<value; count++)
\r
18 new_value = last_value + this_value;
\r
19 last_value = this_value;
\r
20 this_value = new_value;
\r