write a program to print the following triangle of numberslike this: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5how to to write this program?
for(int i=1;i<6;i++){ for(int j=1;i>=j;j++){ System.out.print(j); }System.out.println();}