find-factorial

You have been given a positive integer N. You need to find and print the Factorial  of this number. The Factorial of a positive integer N refers to the product of all number in the range from 1 to N. You can read more about the factorial of a number here.

Input Format:
The first and only line of the input contains a single integer N denoting the number whose factorial you need to find. 

Output Format
Output a single line denoting the factorial of the number N.

Constraints
 1 ≤ N ≤ 10   

SAMPLE INPUT
2

SAMPLE OUTPUT
2

Difficulty: EASY

Starter code:

Solutions:
a=int(input())
b=1
while a!=0:
	b=b*a
	a=a-1
print(b)


n= eval(input())
fact=1
for i in range(1,n+1):
	fact=fact*i
print (fact)


n = int(input())
if 1 <= n <= 10:
	fact = 1
	if n == 1:
		print(fact)
	else:
		for i in list(range(1, n+1)):
			fact = fact * (i)
		print(fact)
			
		
		


def fact(n):
	if n==0:
		return 1
	return n*fact(n-1)
n=int(input())
print((fact(n)))


N=int(input())

factorial=1
for i in range(1,N+1):
	factorial=factorial*i

print(factorial)


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
def fact(n):
	if n == 0:
		return 1
	elif n == 1:
		return 1
	else:
		return n*fact(n-1)

N = int(input())
F = fact(N)
print(F)


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
import sys
i=int(eval(input()))
fact=1
while(i>=1):
	fact=fact*i
	i-=1
	
print(fact)


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
# print 'Hello World!'
N = input()
N=int(N)
fact=1
i=1
for i in range(1,N+1):
	fact=fact*i
	# print fact,i
	
print(fact)


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
def factorial(N):
	if N == 1:
		return 1
	else:
		return N * factorial(N - 1)

N = int(input())
print((factorial(N)))


N = eval(input(""))
total = N

Range = [i for i in range(1,N)]

Range.reverse()

for i in Range:
	indexed = Range.index(i)
	try:
		total *= i
	except IndexError as e:
		continue
print(total)


def fact(n):
	if n == 0 or n == 1:
		return 1
	else:
		return n * fact(n-1)

n = int(input())
if 1 <= n <= 10:
	fn = fact(n)
	print(fn)


#!/usr/bin/python

inNum = input('')
num = int(inNum)
fact = 1

for i in range(1, num+1):
	fact *= i
print(fact)


num = int(input())
fact = num
for i in range(num-1, 1, -1):
	fact *= i
print(fact)


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
from functools import reduce
print(reduce(lambda x,y:x*y ,list(range(1,int(eval(input()))+1))))


def fun(n):
	if n==1 or n==0:
		return 1
	else:
		return fun(n-1)*n
n=int(input())
print(fun(n))



'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
#print 'Hello World!'


N=int(eval(input()));
sum1=1;
for i in range(1, N+1):
	sum1=sum1*i;

print(sum1)



a=int(input())
b=1
while a!=0:
	b=b*a
	a=a-1
print(b)


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''

import sys

if __name__ == '__main__':
	num = int(sys.stdin.read())
	out = 1
	for i in range(1,num+1):
		out = out*i
	print(out)
	


N = eval(input())
def factorial(n):
	if n==0:
		return 1
	else:
		return n * factorial(n-1)
print(factorial(N))


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
n = int(input())
def fact1(n):
	if n <= 1:
		return 1
	else:
		return n * fact1(n-1)
print(fact1(n))


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
num = eval(input('\n'))

fact=1
for x in range (num):
    
	fact=fact*(x+1)
print(fact)


def fact(n):
	if n == 0 or n ==1:
		return 1
	else:
		return n * fact(n-1)

n = int(input())
fn = fact(n)
print(fn)


def fact(num):
	if num == 0 or num == 1:
		return 1
	else:
		num = num * fact(num-1)
	return num
fact_num = eval(input())
print((fact(fact_num)))


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
n=int(input())
fact = 1
while n>1:
	fact=fact*n
	n=n-1
print(fact)
	



'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
#print 'Hello World!'
n=int(input())
def fact(n):
	if n==1:
		return 1
	else:
	    return n*fact(n-1)
f=fact(n)
print(f)