How to print stars( * ) pattern in java ?

Let's try to print some of the following pattern in java:

We can play with * and print them in many ways, many style. Let's see some awesome pattern of stars and try to do this by computer.
At first try yourself, then go to see code.
Pattern 1:

Code for this above pattern in Java.                                      Code for this above pattern in C.

Pattern 2:

Code for this above pattern in Java.                                      Code for this above pattern in C.

Pattern 3:

Code for this above pattern in Java.                                     Code for this above pattern in C.

Pattern 4:


Code for this above pattern in Java.                                     Code for this above pattern in C.


Pattern 5:



Code for this above pattern in Java.                                     Code for this above pattern in C.

Pattern 6:


Code for this above pattern in Java.                                     Code for this above pattern in C.

Pattern 7:


Code for this above pattern in Java.                                     Code for this above pattern in C.

Pattern 8:


Code for this above pattern in Java.                                     Code for this above pattern in C. 

Related post :

How to print Stars pattern in C 


Happy coding...

2/Post a Comment/Comments

  1. Hello there, I am big fan of your blog, it also inspired me to create my own blog. I would like to share my latest post about printing patterns of numbers in Java. Please have a look and let me know when you get some time.

    ReplyDelete
    Replies
    1. Thank you! We have seen it. It was really helpful and easy to understand.

      Delete

Post a Comment