Java程序:找出100到1000之间能被5和6整除的数
public class Main {
public static void main(String[] args) {
for (int i = 100; i <= 1000; i++) {
if (i % 5 == 0 && i % 6 == 0) {
System.out.println(i);
}
}
}
}
原文地址: https://www.cveoy.top/t/topic/ipCs 著作权归作者所有。请勿转载和采集!