Formatted with Google Java Formatter
This commit is contained in:
parent
1b828269dc
commit
6ebb159327
@ -23,6 +23,7 @@ public class BinaryPow {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Function for testing binary exponentiation
|
* Function for testing binary exponentiation
|
||||||
|
*
|
||||||
* @param a the base
|
* @param a the base
|
||||||
* @param p the exponent
|
* @param p the exponent
|
||||||
*/
|
*/
|
||||||
@ -32,7 +33,8 @@ public class BinaryPow {
|
|||||||
System.out.println(a + "^" + p + ": " + res);
|
System.out.println(a + "^" + p + ": " + res);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Main Function to call tests
|
/**
|
||||||
|
* Main Function to call tests
|
||||||
*
|
*
|
||||||
* @param args System Line Arguments
|
* @param args System Line Arguments
|
||||||
*/
|
*/
|
||||||
@ -41,6 +43,6 @@ public class BinaryPow {
|
|||||||
test(2, 15);
|
test(2, 15);
|
||||||
|
|
||||||
// prints 3^9: 19683
|
// prints 3^9: 19683
|
||||||
test(3,9);
|
test(3, 9);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user