Re: Fibonacci program
- From: l.willms@xxxxxxxxxxx (Lueko Willms)
- Date: 31 Oct 2005 09:30:00 GMT
.. On 31.10.05
wrote jgavandeletethis@xxxxxxx (James J. Gavan)
on /COMP/LANG/COBOL
in obg9f.358464$oW2.190047@pd7tw1no
about Re: Fibonacci program
JJG> while (h1 < 50) {
JJG> System.out.println(hi);
JJG> hi = lo + h1; // new hi
Oops, where does the "h1" come from? It has not been declared, and
it is so easily to be confused with hl.
JJG> lo = hi - lo; /* new lo is (sum-old lo)
JJG> i.e., the old hi */
Why not a simple assignment instead of a computation?
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
.
- Follow-Ups:
- Re: Fibonacci program
- From: Richard
- Re: Fibonacci program
- References:
- Fibonacci program
- From: spartacus
- Re: Fibonacci program
- From: Volker Bandke
- Re: Fibonacci program
- From: James J. Gavan
- Fibonacci program
- Prev by Date: Re: Fibonacci program
- Next by Date: Re: Cobol work?
- Previous by thread: Re: Fibonacci program
- Next by thread: Re: Fibonacci program
- Index(es):
Relevant Pages
|
|