home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / prog1 / ada-tutr.lzh / FIB.ANS (.png) < prev    next >
ANSI Art File  |  1988-12-21  |  261b  |  640x160  |  1-bit (2 colors)
Labels: text | screenshot | font
OCR: Our solution to Outside Assignment 4 (in FIB. ANS): separate (FIBTEST) function FIB(N : in POSITIVE) return POSITIVE is ANSWER : POSITIVE := 1; begin if N > 2 then ANSWER := FIB(N - 1) + FIB(N - 2); end if ; return ANSWER; end FIB;