# Powers and Roots
# Power
You can use for loop to find power of a number.
To find , you have to multiply 2 four times.
In this example, 2 is the base. 4 is the exponent. It is read is 2 raised to the fourth power. The answer is 16.
# Root
When you do the above process in reverse, you get the root.
Fourth root of 16 is 2. Because when 2 is multiplied 4 times answer is 16.
Fifth root of 243 is 3. Because when 3 is multiplied 5 times, answer is 243.
You can use for loop to find root of a number.
Hint
To find a root of 64, which will simplify 64 to 2.
- Divide 64 by 2. Answer is 32
- Divide the answer by 2
- Keep dividing until you get the answer 1
- Count the number of times you had to divide to get answer 1
The count is 6. This means 2 raise to the power 6 is 64. Or the 6th root of 64 is 2.