Essentially, I need to have the user input some value x, perform this operation:
2^x
and then print out whatever value that is. I'm not sure what's the best way to tackle this. Should I just do loop multiplication (like multiply 2 * 2 x times) or is there another way?