I am writing a program to yield the result of a factorial with an equation rather than using if statements. The goal of the problem is to use functions to get the answer, rather than just doing the equation in void main. Each of the function definitions give the error C4716: 'name of function' : must return a value. The program is written in Microsoft Visual Studio 2010. I have the formula broken into the three parts firstPart, squareRt, and the fullEq. I have come back to the problem numerous times and have been staring at it for hours, any help would be greatly appreciated.