Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Pattern java #566

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions Patterns/Akash.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
public class RTP

{

public static void main(String args[])

{

// the rows to print

int i, j, row=6;

//the outer loop for rows

for(i=0; i<row; i++)

{

//the inner loop for columns

for(j=0; j<=i; j++)

{

//to prints stars

System.out.print(“* “);

}

// print new line

System.out.println();

}

}

}