A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
13
Task/Long-multiplication/Java/long-multiplication.java
Normal file
13
Task/Long-multiplication/Java/long-multiplication.java
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import java.math.BigInteger;
|
||||
|
||||
public class LongMult {
|
||||
|
||||
public static void main(String[] args) {
|
||||
BigInteger TwoPow64 = new BigInteger("18446744073709551616");
|
||||
System.out.println(mult(TwoPow64, TwoPow64));
|
||||
}
|
||||
|
||||
public static BigInteger mult(BigInteger a, BigInteger b){
|
||||
return a.multiply(b);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue