diff --git a/pattern.java b/pattern.java new file mode 100644 index 0000000..cf49bd5 --- /dev/null +++ b/pattern.java @@ -0,0 +1,21 @@ +public class RightTrianglePattern +{ +public static void main(String args[]) +{ +//i for rows and j for columns +//row denotes the number of rows you want to print +int i, j, row=6; +//outer loop for rows +for(i=0; i