Computer Science, asked by digantamandal22, 9 months ago

wap to print the following 9
999
99999
99999999​

Answers

Answered by sanjiththesupernigha
2

Answer:

public class Pattern9 {

   public static void main(String[] args) {

       int rows = 9;

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

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

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

           }

           System.out.println();

       }

   }

}

Explanation:

Answered by sramkishore15
0

Answer:

public class pattern 9

Similar questions