VC++ finds the factorial sum of n