OK so I made this recursive function for getting the factorial of a number. Problem is, It only prints out the right answer for inputs up to 12. I can't get it to output the right answer for inputs that are higher than 12.
Code:int factorial(int input { if(input==1){ return 1; } else return input*(factorial(input-1)); }