1.

9 9 9 9 97 7 7 7 75 5 5 5 53 3 3 3 31 1 1 1 1 print this pattern in JAVA​

Answer»

ANSWER:

public CLASS Pattern {

public static void main(String[] args) {

int rows = 5;

for(int i = rows; i >= 1; --i) {

for(int space = 1; space <= rows - i; ++space) {

System.out.print(" ");

}

for(int j=i; j <= 2 * i - 1; ++j) {

System.out.print("* ");

}

for(int j = 0; j < i - 1; ++j) {

System.out.print("* ");

}

System.out.println();

}

}

}

Explanation:

plz mark brainliest



Discussion

No Comment Found