Re: Fibonacci program
- From: l.willms@xxxxxxxxxxx (Lueko Willms)
- Date: 31 Oct 2005 06:28:00 GMT
.. On 30.10.05
wrote lacey@xxxxxxx (Peter Lacey)
on /COMP/LANG/COBOL
in 43650914.6BAFF337@xxxxxxx
about Re: Fibonacci program
PL> If it's just an issue of your style preference, I don't know that it
PL> was worth posting; still, that's up to you. Personally I much prefer
PL> the original. But could you perhaps explain why you prefer the
PL> EVALUATE to the three IF's?
Can more than one of the three variables be equal to 3 at the same
time?
If no, why check the other two if you have found the one you looked
for in the first instance?
BTW, I would simplify the thing further and write instead of
>> SUBTRACT 1 FROM P
>> SUBTRACT 1 FROM Q
>> SUBTRACT 1 FROM R
SUBTRACT 1 FROM P, Q, R
Yours,
Lüko Willms http://www.willms-edv.de
/--------- L.WILLMS@xxxxxxxxxxx -- Alle Rechte vorbehalten --
Vorstellungen sind auch ein Leben und eine Welt. -G.C.Lichtenberg
.
- References:
- Fibonacci program
- From: spartacus
- Re: Fibonacci program
- From: William M. Klein
- Re: Fibonacci program
- From: Peter Lacey
- Fibonacci program
- Prev by Date: Re: Cobol work?
- Next by Date: Re: Cobol work?
- Previous by thread: Re: Fibonacci program
- Next by thread: Re: Fibonacci program
- Index(es):