Mathematical functions in Java

Java provides various mathmetical functions like cos, sin, sqrt, tan etc.

Computing Power of 2 using for loop

 In For loop, three actions are performed that is initialization, condition, Increment/decrement.
This is the main feature that are not found in any other loop.

Math Function