programming challenge (silly)

Blair P. Houghton bph at buengc.BU.EDU
Fri Mar 10 04:01:41 AEST 1989


In article <6639 at saturn.ucsc.edu> kjell at saturn.ucsc.edu (Kjell Post) writes:
>>> Can anyone beat [98 characters]?
>
>Count this:
>
>main(n,m){for(scanf("%d",&m);m>1&m<10;n*=m--);
>printf(m-1?"error\n":"answer is %d\n",n);}

It must have been a "me and my ftp" problem again, but the manual page
for this program seems to have elided my grasp.  Could someone mail
me one?

				--Blair
				  "I.e., 'compiles fine,
				   but what does it do?'"
				   8-0 :-| |-) %-D



More information about the Comp.lang.c mailing list