Stack-Repo
/
data
/train
/rghvgrv
/Simple-Programs
/Data-Structure-and-Algorithms
/Java
/Mathematics
/Pattern.java
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("$"); | |
} | |
} | |
} | |