import os fa = int(input('Enter a Number :')) f=1 for i in range(2,fa+1): f=f*i print(f'factorial({fa})={f}')