public class JavaExample { public static void main(String args[]) { int row, column, numberOfRows = 6; for (row=0; row<numberOfRows; row++) { for (column=numberOfRows-row; column>1; column--) { System.out.print(" "); } for (column=0; column<=row; column++ ) { System.out.print("* "); } // This is to move the cursor to new line for each row System.out.println(); } } }
-
Notifications
You must be signed in to change notification settings - Fork 0
sreenivas2022/Pyaramid-Java-Program
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published