Created
August 18, 2016 16:43
-
-
Save iporsut/12427ef8595ee71110386007c54d734d to your computer and use it in GitHub Desktop.
BigInteger power print
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigInteger; | |
public class Replicate { | |
public static void main(String []args) { | |
Integer n = 100; | |
BigInteger bn = new BigInteger(n.toString()).pow(n); | |
while (!bn.equals(BigInteger.ZERO)) { | |
System.out.print('A'); | |
bn = bn.subtract(BigInteger.ONE); | |
} | |
System.out.println(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment