programming challenge (silly)

Greg Limes limes at wseng.sun.com
Thu Mar 16 14:34:39 AEST 1989


In article <4412 at ingr.com> crossgl at 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 at 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-)



More information about the Comp.lang.c mailing list