http://www.javakc.com
2022-08-06 11:55:43 查看(50) 回复(0)
public class for语句练习 { public static void main(String[] args) { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { int s=1; if (j<=i){ s=i*j; System.out.print(j+" * "+i+"= "+s+" ");} } System.out.println(); } } }
评论
站点统计|举报|Archiver|手机版|小黑屋|Comsenz Inc.
GMT+8, , Processed in 0.195171 second(s), 9 queries .
Powered by javakc! X1.0
© 2004-2014 javakc
f1208.com 备案号:京ICP备14030918号-1