Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ames!think!gordon From: gordon@think.COM (gordon linoff) Newsgroups: comp.lang.c Subject: Re: (silly challenge); Can you beat this? Message-ID: <37433@think.UUCP> Date: 13 Mar 89 19:32:45 GMT Sender: news@think.UUCP Reply-To: gordon@think.com (gordon linoff) Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 15 I wish I could take credit for this, but it is now down to 83 characters (84 with the trailing newline). Dan Perkins of Zycad Corporation came up with it. And this is it . . . main(y,x){for(scanf("%d",&x);--x%9;y*=x+1); printf(x?"error\n":"answer is %d\n",y);} The extra carriage return is for your reading pleasure, of course. --gordon@think.com Thinking Machines Corporation