1. Antoine Pietri
  2. blaise

Source

blaise / examples / fact.bl

fact(x)
{
    if (x < 0)
    {
        return 0;
    }
    else
    {
        if (x == 0 || x == 1)
        {
            return 1;
        }
        else
        {
            return x * fact(x - 1);
        }
    }
}

main()
{
    vars a;
    a = read();
    write(fact(a));
}