Computer Science, asked by sayanidassneha, 10 months ago

java program to print



12345
22345
33345
44445
55555​

Answers

Answered by aryan413158
0

Answer:

55555 is your answer

hope it helps. . .

Answered by anishdhar12399
0

Answer:

import java.util .*;

public class Pattern {

  public static void main() {

      for (int i = 1; i <= 5; i++) {

          for (int j = 1; j <= 5; j++) {

              if (j <= i) {

                  System.out.print(i + " ");

              } else {

                  System.out.print(j + " ");

              }

          }

          System.out.println();

      }

 

   }

}

Explanation:

Similar questions