fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.math.*;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
  10. {
  11. public static void main (String[] args) throws java.lang.Exception
  12. {
  13. BigInteger x=new BigInteger("9");
  14. for (int i=1;i<20;i++)
  15. System.out.println(x.pow(i));
  16. // your code goes here
  17. }
  18. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
9
81
729
6561
59049
531441
4782969
43046721
387420489
3486784401
31381059609
282429536481
2541865828329
22876792454961
205891132094649
1853020188851841
16677181699666569
150094635296999121
1350851717672992089