Computer Science, asked by subhamchoudharyccs, 1 month ago

Write a program in java to display the given pattern
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
1 2 3 2 1
1 2 1
1

Answers

Answered by royalsachin60
0

Answer:

public class KboatPattern

{

public static void main(String args[]) {

for (int i = 1; i <= 5; i++) {

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

System.out.print(j + " ");

}

System.out.println();

}

}

}

Explanation:

I hope that is right mark me as brainliest

Similar questions