Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

This program is a good exercise for mastering loops e.g. for loop and while loop in Java.

This also teaches you How


to use break and continue statement with loops in Java. By the way you can print any character and
use System.out.print() and System.out.println())
*
***
*****
***
*

You might also like