美文网首页
for语句打印乘法表进阶

for语句打印乘法表进阶

作者: 哈迪斯Java | 来源:发表于2021-10-14 07:49 被阅读0次

package HspLearning;

public class For5 {
public static void main(String[] args) {
//打印乘法表
int s = 11;
for (int i = 1; i <= s;i++){
for (int j = 1;j <= i;j++){
System.out.print(i + "" + j + "=" + (ij)+ "\t");
}
System.out.println();
}

}

}

相关文章

网友评论

      本文标题:for语句打印乘法表进阶

      本文链接:https://www.haomeiwen.com/subject/bopeoltx.html