programming challenge (silly)
Kjell Post
kjell at saturn.ucsc.edu
Thu Mar 9 12:28:29 AEST 1989
In article <2128 at laidbak.UUCP> daveb at laidbak.UUCP (Dave Burton) writes:
>> Can anyone beat [98 characters]?
>
>We got down to 103 characters, "portably".
>On a Sun, I got 96 characters - but this is implementation dependent.
>--
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);}
--
For athletes and programmers, ! Kjell E. Post
a woman is the end of their career. ! CIS/CE
! University of California, Santa Cruz
-- A.Wickberg ! Email: kjell at saturn.ucsc.edu
More information about the Comp.lang.c
mailing list