src/main/java/Mathey.java
public static int pow(int a, int b){
        int product=1;
        for (int i= 0; i<b;i++){
           product*=a;
        }
        return product;
    }
/* Write a method that takes **two integers** and calculates the exponent
     * that you get by raising the first integer to the second integer
     * you may assume that both integers are positive
     * Ex. pow(2, 5) => 32
     *     pow(3, 4) => 81
     */
Write a method that takes **two integers** and calculates the exponent
that you get by raising the first integer to the second integer
you may assume that both integers are positive
Ex.
Write a method that takes ** two integers ** and calculates the exponent that you get by raising the first integer to the second integer you may assume that both integers are positive Ex .
public static int pow(int a, int b){
        int product=1;
        for (int i= 0; i<b;i++){
           product*=a;
        }
        return product;
    }
public static int pow ( int a , int b ) { int product = 1 ; for ( int i = 0 ; i < b ; i ++ ) { product *= a ; } return product ; }
Write a method that takes **two integers** and calculates the exponent
 that you get by raising the first integer to the second integer
 you may assume that both integers are positive
 Ex.
Write a method that takes ** two integers ** and calculates the exponent that you get by raising the first integer to the second integer you may assume that both integers are positive Ex .