programming puzzle (silly)

Miles Bader bader+ at andrew.cmu.edu
Sat Mar 11 15:29:41 AEST 1989


>From klier at 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 at ernie.Berkeley.EDU)

The compiler on this machine give the following error; is it wrong?

E "fact.c",L1/C44:	(syntactic)  unexpected symbol:'*='

-Miles



More information about the Comp.lang.c mailing list