I hope this is in the right place. There probably is a very simple answer to the question I have but here goes.
I understand raising to the power but I don't understand the two following statements that are in my programming book; more specifically I do not know how I would write them down on paper.
Five raised to the first power of 2 is 25
Five raised to the second power of 2 is 125
It's confusing me because I know 5^2 is 25 and that 5^3 is 125 so how can "Five raised to the second power of 2 be 125" and how would I express it in laymans terms?
My math isn't great so please keep it simplish!
And thanks in advance!
Also is "Five raised to the second power of 2 is 125" wrong in the book?
I didn't understand this bit with the funny equals sign. NOTE that and when I enter on my calculator i get 15625 so i'm doing something wrong.
Thanks for your help by the way!
I would read "Five raised to the second power of 2" as .
It's a C programming book in English.Again, I do not know the vocabulary of your textbook, or language.
Yes that's exactly how I'm reading it which is why i'm confused why the book states it as 25 and 125 on each line.I would read "Five raised to the second power of 2" as .
The exercise is to write a program that prints 5 raised to the first five powers of 2 and the output of each line is in the format "Five raised to the nth power of 2 is x"
The difficulty is that I cannot use loops or a mod operator and have to print the line individually.
I haven't worked it out yet and the wording hasn't helped
Again, thank you very much for the help.