http://www.javakc.com
2022-08-05 16:51:30 查看(4) 回复(0)
要求:最后一个数字后,不需要输出 “逗号”
public class xunh2 { public static void main(String[] args) { for (int i = 1; i <= 1000; i++) { System.out.print(i); if (i!=1000) System.out.print(","); } } }
评论
站点统计|举报|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