Output:
Click Here For Java Online Compiler
Solution:
*** Star Pattern 4 *** * ** *** **** ***** ******
Click Here For Java Online Compiler
Solution:
class StarPattern4 { public static void main(String args[]) { int rows = 6; System.out.println("*** Star Pattern 4 ***" + "\n"); for (int i = rows; i >= 1; i--) { for (int j = 1; j < i; j++) { System.out.print(" "); } for (int k = rows; k >= i; k--) { System.out.print("*"); } System.out.println(""); } } }
comment 1 comments:
more_vertnice article.thank you for sharing useful info.
29 August 2018 at 20:07visit
web programming tutorial
welookups
sentiment_satisfied Emoticon