Last active
April 12, 2024 06:43
-
-
Save princesanjivy/9c5b2d5ed878fa10e36d7397794d4dcc to your computer and use it in GitHub Desktop.
Test micro pattern printing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
int rows = 5; | |
for (int i = 1; i <= rows; ++i) { | |
for (int j = 1; j <= i; ++j) { | |
System.out.print("* "); | |
} | |
System.out.println(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment