File:  [gforth] / gforth / fib.fs
Revision 1.1: download - view: text, annotated - select for diffs
Mon Nov 13 18:38:35 1995 UTC (23 years, 8 months ago) by anton
Branches: MAIN
CVS tags: v0-6-2, v0-6-1, v0-6-0, v0-5-0, v0-4-0, v0-3-0, v0-2-1, v0-2-0, gforth-0_1beta, HEAD
added benchmark files

: fib ( n1 -- n2 )
    dup 2 < if
	drop 1
    else
	dup
	1- recurse
	swap 2 - recurse
	+
    then ;

: main 34 fib drop ;

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>