def fact(nr): print(nr) if nr<=1: return 1 vastus=nr*fact(nr-1) print(nr, vastus) return vastus print(fact(5))