【年少の風】java_Conti面白い数字配列



  
  
  
  
  1. public class Conti {  
  2.  
  3.     public static void main(String[] args) {  
  4.           
  5.         for(int i = 0; i < 10; i++) {  
  6.             for(int j = i; j <= i*2; j++) {  
  7.               
  8.                 System.out.print(j + " ");  
  9.             }  
  10.             System.out.print("
    "
    );  
  11.         }  
  12.     }