Java Number Power pow(int a, int b)

Here you can find the source of pow(int a, int b)

Description

pow

License

Open Source License

Declaration

public static int pow(int a, int b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int pow(int a, int b) {
        if (b > 1)
            return a * pow(a, b - 1);
        else/*from w w  w.j  av  a 2  s . c  o m*/
            return a;
    }
}

Related

  1. pow(float a, float b)
  2. Pow(float base, float exponent)
  3. pow(float x, int y)
  4. pow(float[] inData, float rate)
  5. pow(float[][] in)
  6. pow(int a, int b, int modulus)
  7. pow(int b, int e)
  8. pow(int base, int exp)
  9. pow(int base, int exp)