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 = 7; $cont = $numero -1; while ($cont > 0) { $numero = $numero * $cont; $cont = $cont -1; } print "Il fattoriale รจ $numero.\n";
Private
[
?
]
Run code
Submit