[Rio-pm] [Golf] Fatorial

Stefano Rodighiero stefano.rodighiero em gmail.com
Segunda Fevereiro 1 05:57:39 PST 2010


2010/2/1 Alexei Znamensky <russoz at gmail.com>:

> perl -E'$n=1;$n*=$_ for 1..6;say $n'

Even nicer.

and it can be bent in the usual way

perl -E'$.*=$_ for 1..<>;say $.'

(also, this takes input)

s.

-- 
www.stefanorodighiero.net


Mais detalhes sobre a lista de discussão Rio-pm