public class Chenfakoujuebiao {
public void daying() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= i; j++) {
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
}
System.out.println();
}
}
public static void main(String args[]) {
Chenfakoujuebiao p = new Chenfakoujuebiao();
p.daying();
}
}
软件工程专业萌新,如有错误请多多指教。