Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!nrl-cmf!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: How not to write a loop Message-ID: <7384@brl-smoke.ARPA> Date: 29 Feb 88 18:00:53 GMT References: <560@naucse.UUCP> <1988Feb11.200149.25172@sq.uucp> <2115@bsu-cs.UUCP> <296@draken.nada.kth.se> <832@unmvax.unm.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 Keywords: For Loops Silliness Why In article <832@unmvax.unm.edu> mike@turing.UNM.EDU.UUCP (Michael I. Bushnell) writes: > float x; > for (x = 0; x < 20; x += .5) > printf("%f\n", x); >The output would, of course, be > 0.0 ... > 19.5 and, perhaps, 20.0 (ignoring the nit that this isn't quite the format specified). That is why the original poster didn't want to see such loop control in putative portable programs.