标签:min 九九乘法表 enc ble nis admin triangle rgs model
public class Nn {
public static void main(String[] args) {
for (int j = 1; j <= 9; j++) {
for (int i = 1; i <=j; i++) {
System.out.print(i+"*"+j+"="+(j*i)+"\t");
}
System.out.println();
}
?
}
}
public class Triangle {
public static void main(String[] args) {
for (int i = 1; i <= 5; i++) {
for (int j = 5; j >= i; j--) {
System.out.print(" ");
}
for (int j = 1; j <= i;j++){
System.out.print("*");
}
for (int j = 1; j < i;j++){
System.out.print("*");
}
System.out.println();
}
}
}
标签:min 九九乘法表 enc ble nis admin triangle rgs model
原文地址:https://www.cnblogs.com/Jaxopp/p/12785886.html