public class test {
public static void main(String[] args){
//输出n行的三角形
int n= 25;
for (int j = 0; j < n; j++) {
for (int i = j; i < n; i++) {
System.out.print(" ");
}
for (int i =n- j; i < n; i++) {
System.out.print("*");
}
for (int i = n-j;i<=n;i++){
System.out.print("1");
}
System.out.print("\n");
}
}
}