java程序输写空心等腰三角形(99乘法表)
package com.q1.w;
public class w11 {
public static void main(String[] args) {
char q = ‘*’;
char w = ‘=’;
for (int i = 1; i <10 ; i++) {
for (int j = i+1; j <10 ; j++) {
System.out.print(" “);
}
for (int z = 1; z <=i ; z++) {
if(z 1 || z>=i ||i9) {
int s = i * z;
System.out.print(z);
System.out.print(q);
System.out.print(i);
System.out.print(w);
System.out.print(s);
System.out.print(” “);
}
else
System.out.print(” ");
}
System.out.println();
}
}
}