Exponentation by squaring is an algorithm that will quickly calculate x^n given user input. x and n are integers in this case. This implementation uses recursion, whereby a function calls itself within it's own body. The answer is outputted on the console.