Skip to content

Instantly share code, notes, and snippets.

@iporsut
Created August 18, 2016 16:43
Show Gist options
  • Save iporsut/12427ef8595ee71110386007c54d734d to your computer and use it in GitHub Desktop.
Save iporsut/12427ef8595ee71110386007c54d734d to your computer and use it in GitHub Desktop.
BigInteger power print
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