Datasets:

ArXiv:
License:
File size: 297 Bytes
c574d3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public class Pattern{

  public static void main(String[] args){
    int n = 3;
    for(int i = n; i>0;i--){

      for(int j = n; j>0; j--){

        
        for(int k = 1;k<=i;k++ ){
          
            System.out.print(j+" ");
        }
      }

        System.out.print("$");
    }

  }
}