Computer Science, asked by mallika4vasudev, 6 months ago

1 * * * * * * * * * * 1 1 2 * * * * * * * 2 1 1 2 3 * * * * 3 2 1 1 2 3 4 * 4 3 2 1 1 2 3 4 5 4 3 2 1 pattern program in java

Answers

Answered by siddharthgurjar550
11

Explanation:

public class Pattern {

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

}

}

}

MARK AS BRAINLIEST...

Similar questions