java

Print Rectangle Pattern in Java

Here is an example Java Program that shows how to print a Rectangle Pattern. This program is useful for school/college kids those who are learning Java programming.

Here is the complete program to print the Rectangle pattern using Java:

Output:

This program asks for the user input to enter the number of rows for the pattern to print and then uses nested loops to print the pattern.

Related Posts

Leave a Reply