A simple program to calculate factorials.