# Fakultät iterativ n = int(input('n = ')) if n == 0: p = 1 else: i = 2 p = 1 while i <= n: p = i * p i = i + 1 print(n,'! = ',p)