1public static void main(String[] args) {
2
3 for (int i = 0; i < 10; i++) {
4 for (int j = 0; j < 10 - i; j++)
5 System.out.print(" ");
6 for (int k = 0; k < (2 * i + 1); k++)
7 System.out.print("*");
8 System.out.println();
9 }
10 }