#!/usr/bin/perl
$input_1 = 4;
sub fattoriale
{
if ($valore > 1)
{
return ($valore * &fattoriale ($valore -1)); }
else
{
}
}
$miofatt = &fattoriale ($input_1);
print "$input_1! = $miofatt\n";
IyEvdXNyL2Jpbi9wZXJsCiRpbnB1dF8xID0gNDsKc3ViIGZhdHRvcmlhbGUKewogICAgbG9jYWwgJHZhbG9yZSA9ICRfWzBdOwogICAgaWYgKCR2YWxvcmUgPiAxKQogICAgICB7CiAgICAgICAgcmV0dXJuICgkdmFsb3JlICogJmZhdHRvcmlhbGUgKCR2YWxvcmUgLTEpKTsKICAgICAgfQogICAgZWxzZQogICAgICB7CiAgICAgICAgcmV0dXJuIDE7CiAgICAgIH0KfQoKJG1pb2ZhdHQgPSAmZmF0dG9yaWFsZSAoJGlucHV0XzEpOwoKcHJpbnQgIiRpbnB1dF8xISA9ICRtaW9mYXR0XG4iOwo=