Skip to content

sreenivas2022/Pyaramid-Java-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Pyaramid-Java-Program

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(); } } }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published