Wipro Interview Question

write a program to print factorial of a number.