#!/usr/bin/perl
$input_1 = 3;
sub fattoriale
{
my $valore = $_[0];
if ($valore > 1)
{
return ($valore * &fattoriale ($valore -1)); }
else
{
}
}
$miofatt = &fattoriale ($input_1);
print "$input_1! = $miofatt\n";
IyEvdXNyL2Jpbi9wZXJsCiRpbnB1dF8xID0gMzsKc3ViIGZhdHRvcmlhbGUKewogICAgbXkgJHZhbG9yZSA9ICRfWzBdOwogICAgaWYgKCR2YWxvcmUgPiAxKQogICAgICB7CiAgICAgICAgcmV0dXJuICgkdmFsb3JlICogJmZhdHRvcmlhbGUgKCR2YWxvcmUgLTEpKTsKICAgICAgfQogICAgZWxzZQogICAgICB7CiAgICAgICAgcmV0dXJuIDE7CiAgICAgIH0KfQoKJG1pb2ZhdHQgPSAmZmF0dG9yaWFsZSAoJGlucHV0XzEpOwoKcHJpbnQgIiRpbnB1dF8xISA9ICRtaW9mYXR0XG4iOwo=