Files
2016-04-19 11:58:53 +02:00

17 lines
180 B
Plaintext

fact( entier $f )
{
si $f = 1 | $f = 0 alors {
retour 1;
}
sinon {
retour fact( $f - 1 ) * $f ;
}
}
main()
entier $a;
{
$a = lire();
ecrire( fact( $a ) );
}