Alongbar Daimary answered //Program Style 1 class Triangle{ public static void main(String[]ar){ int Limit=20; int Prn=1; for(int I=1;I<=Limit;I++){ for(int j=1;j<=I;j++){ if (Prn==Limit) return; System.out.print("t" + Prn); Prn++; } System.out.print("n"); } } } //Program Style 2 class Triangle{ public static void main(String[]ar){ int Limit=10; for(int I=1;I<=Limit;I++){ for(int j=1;j<=I;j++){ System.out.print("t" + I); } System.out.print("n"); } } }