I've got four assignments due tomorrow, I did all but one because I'm just so confused. If anyone can help, it would mean the world to me.
So here it is,and thank you in advanceb...
Write a program that will read an integer N and then compute 2 to the power N. You are required to use a for loop.
In the examples below, what you see in italics is what the computer prints and what you see in boldface is what the user types.
Enter N: 3
2 to the power 3 is 2*2*2 = 8
Enter N: 5
2 to the power 5 is 2*2*2*2*2 = 32