java for循环的嵌套使用 九九乘法表

java for循环的嵌套使用 九九乘法表,第1张

JAVA 九九乘法表

public class ForPractice3 {
	public static void main(String[] args) {
		/*****start*****/
		for(int i = 1;i<=9;i++){
			for(int j = 1;j<=i; j++){
				System.out.printf("%d*%d=%d\t",j,i,i*j);
			}
			System.out.println();
		}
				
		/*****end*****/
	}
}

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/791280.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-05
下一篇2022-05-05

发表评论

登录后才能评论

评论列表(0条)

    保存