Skip to content

Commit

Permalink
boxPattern commit
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyaash committed Oct 25, 2024
1 parent 2be2eeb commit 203585b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions patterns/boxPattern.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class boxPattern {
public static void boxIt(int n){
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
System.out.print("*");
}
System.out.println();
}
}
}

0 comments on commit 203585b

Please sign in to comment.