Computer Science, asked by hydra5, 11 months ago

WAP To display (computer Java)pattern

12

123

1234

12345​

Answers

Answered by Nazakat123
0

Start

Let i be an integer number.

Let j be an integer number.

Repeat step 5 to 7 until all value parse.

Set i = 0 and check i<6;

Set j = 1 and check j <= i;

Print "*".

End

JAVA

Explanation:

hope u will like it

Answered by atrs7391
0

Easiest program:

package com.company;  

public class Main {

  public static void main(String[] args) {

      int s = 0;

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

          s = s*10+i;

          System.out.println(s);

      }

  }

}

Output:

1

12

123

1234

12345

Similar questions