#include "header.h" //Returns the factorial of x. int factorial(int x) { int y=1; if (x >0) {y = x * factorial(x-1);}//Recursively multiplies in smaller numbers return y;//If it reaches x=0, it just returns 1, as expected. }