codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#!/usr/bin/perl # # Il numero di partenza viene fornito come costante. # $numero = 5; $cont = $numero -1; while ($cont) { $numero *= $cont; $cont--; } print "Il fattoriale รจ $numero.\n";
Private
[
?
]
Run code
Submit