Fibonacci sequence: Difference between revisions

m
PL/0: The last line of a "begin" compound statement must not be terminated with a semicolon. Unusual but true!
m (PL/0: The last line of a "begin" compound statement must not be terminated with a semicolon. Unusual but true!)
(One intermediate revision by one other user not shown)
Line 8,331:
 
=={{header|langur}}==
<syntaxhighlight lang="langur">val .fibonacci = ffn(.x) if(.x < 2: .x ; self(.x - 1) + self(.x - 2))
 
writeln map .fibonacci, series 2..20</syntaxhighlight>
Line 11,220:
i := i + 1
end;
! b;
end.
</syntaxhighlight>