Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
import java.math.BigInteger;
|
||||
|
||||
class IntegerPower {
|
||||
public static void main(String[] args) {
|
||||
BigInteger power = BigInteger.valueOf(5).pow(BigInteger.valueOf(4).pow(BigInteger.valueOf(3).pow(2).intValueExact()).intValueExact());
|
||||
String str = power.toString();
|
||||
int len = str.length();
|
||||
System.out.printf("5**4**3**2 = %s...%s and has %d digits%n",
|
||||
str.substring(0, 20), str.substring(len - 20), len);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue