Path: utzoo!mnetor!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!osu-cis!osupyr!gae From: gae@osupyr.UUCP (Gerald Edgar) Newsgroups: comp.lang.c Subject: Re: How not to write a loop Message-ID: <402@osupyr.UUCP> Date: 10 Mar 88 13:36:07 GMT References: <560@naucse.UUCP> <1988Feb11.200149.25172@sq.uucp> <2115@bsu-cs.UUCP> <832@unmvax.unm.edu> <712@cresswell.quintus.UUCP> <928@aucs.UUCP> Reply-To: gae@osupyr.mast.ohio-state.edu.UUCP (Gerald Edgar) Distribution: na Organization: The Ohio State University, Dept. of Math. Lines: 15 Keywords: For Loops Silliness Why Lengthy discussion about loops such as: >>> float x; >>> for (x = 0; x < 20; x += .5) printf("%f\n", x); How about this: float x; for (x = 0; x < 19.75; x += .5) printf("%f\n", x); -- Gerald A. Edgar TS1871@OHSTVMA.bitnet Department of Mathematics gae@osupyr.UUCP The Ohio State University ...{akgua,gatech,ihnp4,ulysses}!cbosgd!osupyr!gae Columbus, OH 43210 70715,1324 CompuServe