
Write a program that displays the following pattern ... (use nested loops)

the correct pattren
**
***
**
*
**
*
**
*
**
*

class A { public static void main(String[] args) { for(int i=0;i<5;i++) { System.out.println("*"); for(int j=0;j<2;j++) { System.out.print("* "); } System.out.print("\n"); } } }
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.