Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!morocco!landauer From: landauer@morocco.Sun.COM (Doug Landauer) Newsgroups: comp.lang.c Subject: Re: programming challenge (really silly) Message-ID: <93227@sun.uucp> Date: 10 Mar 89 02:00:08 GMT References: <2102@jasper.UUCP> Sender: news@sun.uucp Reply-To: landauer@sun.UUCP (Doug Landauer) Followup-To: comp.misc Distribution: na Organization: Sun Microsystems, Mountain View Lines: 49 > A friend and I tried to mimic the behaviour of the following program in > the fewest characters possible. The best we were able to do was 98 > characters (result of wc). Can anyone beat this? >> [a few attempts, all in C, omitted] C'mon, guys, where's your imagination? Portable? C? She said "the fewest characters possible"! (Nothing in the original challenge said it had to be in "C", which is why I've sent followups to comp.misc.) Anyway, I haven't seen any other postings that solve this silly challenge (to write a little factorial program) in as few characters as does this 76-character shell/dc/sed script: ---- dc<ed9