java编写一到一百间七的倍数每行输出五个数字代码
public class SevenMultiples { public static void main(String[] args) { int count = 0; for (int i = 7; i <= 700; i += 7) { System.out.print(i + " "); count++; if (count % 5 == 0) { System.out.println(); } } } }
原文地址: http://www.cveoy.top/t/topic/huq4 著作权归作者所有。请勿转载和采集!