Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.c Subject: Re: programming puzzle (silly) Message-ID: <2821@goofy.megatest.UUCP> Date: 10 Mar 89 21:50:17 GMT References: <28336@ucbvax.BERKELEY.EDU> Organization: Megatest Corporation, San Jose, Ca Lines: 16 From article <28336@ucbvax.BERKELEY.EDU>, by klier@ucbarpa.Berkeley.EDU (Pete Klier): > > *********************** > main(m,n){scanf("%d",&n);for(m=n>0^n>9;n&&m*=n--;); > printf(m?"Answer=%d\n":"error\n",m);} > *********************** > > with help from Jeff Conroy (jmconroy@ernie.Berkeley.EDU) > Awesome. Truely awesome. I don't think this entry will be surpassed. By the way, this looks a little like some of the code in the original 4.2BSD Pascal compiler.