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
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
Political Science,
3 months ago
Math,
8 months ago
Chemistry,
8 months ago
Physics,
11 months ago
Math,
11 months ago