Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!oliveb!sun!limes From: limes@wseng.sun.com (Greg Limes) Newsgroups: comp.lang.c Subject: Re: programming challenge (silly) Message-ID: Date: 16 Mar 89 08:54:08 GMT References: <37433@think.UUCP> <4412@ingr.com> Sender: news@sun.Eng.Sun.COM Organization: Sun Microsystems, Inc. Lines: 13 In-reply-to: crossgl@ingr.com's message of 14 Mar 89 16:38:32 GMT In article <4412@ingr.com> crossgl@ingr.com (Gordon Cross) writes: The example above fails to yield the correct answer if invoked with arguments on the command line whereas the original program did... Perhaps it is time to ask, since c415-23@alberta did not specify. *** Can we assume no parameters? *** My current version stands at 85 characters. Assuming no parameters brings it down to 83. Removing the final newline brings it down to 82. Removing the newlines from the printf formats gets it down to 78, but that is definitely cheating 8-)