캬캬백곰 2012. 4. 25. 14:56
728x90

 

 

결과)

5

4    5

3    4    5

2    3    4    5

1    2    3    4    5

와 같은 결과를 출력한다.

 

 public static void main(String[] args) {
  //
  
  for(int i=5; i>0; i--){
   for(int j=i; j<6; j++){
    System.out.print(j+"\t");    
   }
   System.out.println();
  }

728x90
반응형