inbuilt function in java to find power of a number code example Example: how to find powers in java int n=Math.pow(N, P);