Computer Science, asked by DevGupta749, 7 months ago

write a program to display a pattern in BlueJ
15,14,13,12,11
10,9,8,7
6,5,4
3,2
1​

Answers

Answered by Oreki
0

public class Pattern {

public static void main(String[ ] args) {

for (int i = 0, number = 15; i < 5; i++) {

for (int j = 0; j < (5 - i); j++, number- -)

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

System.out.println( );

}

}

}

Similar questions