Files
why3/examples/python/fact.py
2021-02-05 20:01:48 +01:00

8 lines
117 B
Python

def fact(n):
#@ ensures result >= 1
#@ variant n
if n <= 1:
return 1
return n * fact(n - 1)