Infosys Interview Question

Write a program to print factorial of a number.