#
#  Program computes factorial 
# 
num = int(raw_input('Enter integer to compute factorial :'))
prod = 1.0
for i in range(1,num +1):
    prod = prod*i 

#  Print results 
print '\n  x =  %d,  x! =  %d' % (num, prod)   

# Challenge exercises:
#   Add loop to compute and print factoricals of all integers up to n (use input)
#   Make factorial function a 'recursive' call 
