Saved Bookmarks
| 1. |
Wap in java to display the given pattern:- * ** *** **** ***** |
|
Answer» Answer: public CLASS triangle { public static void main(String args[]) { int i,j,row=5; for(int i=0;i<=row;i++) { for(int j=0;j<=i;j++) { System.out.println("*"); } } } } Explanation: Hey Friend, I hope you will like my PROGRAM, I have made the program please like it and also MARK my answer as BRAINLIEST.. |
|