└── UPPER TRIANGLE PATTERN /UPPER TRIANGLE PATTERN: -------------------------------------------------------------------------------- 1 | public class RightTrianglePattern 2 | { 3 | public static void main(String args[]) 4 | { 5 | //i for rows and j for columns 6 | //row denotes the number of rows you want to print 7 | int i, j, row=6; 8 | //outer loop for rows 9 | for(i=0; i