fork download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. for(int ai = -8; ai <= 8; ai++) {
  9. System.out.print("[" + ai + ", " + (ai*ai) + "], ");
  10. } System.out.println();
  11.  
  12. for (int ai = -8; ai <=8; ai++) {
  13. System.out.println(ai + ", ");
  14. }
  15. }
  16. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
[-8, 64], [-7, 49], [-6, 36], [-5, 25], [-4, 16], [-3, 9], [-2, 4], [-1, 1], [0, 0], [1, 1], [2, 4], [3, 9], [4, 16], [5, 25], [6, 36], [7, 49], [8, 64], 
-8, 
-7, 
-6, 
-5, 
-4, 
-3, 
-2, 
-1, 
0, 
1, 
2, 
3, 
4, 
5, 
6, 
7, 
8,