- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 2021-04-19
注册 <style> *{ margin: 0px; padding: 0px; box-sizing: border-box; } body{ background: url("./image/register_bg.jpeg") no-repeat center; padding-top: 25px; } .rg_layout{...
2021-04-19 00:00:48
137
原创 输出1到1000之间所有可以被3整除又可以被7整除的数并统计个数
public class Axz{ public static void main(String[] args) { int k=1; System.out.println(“在1-1000中间可被3与7整除的为:”); for(int n=1;n<=1000;n++) { if(n%3!=0||n%7!=0) continue; System.out.print(n+" “); if(k++%10==0) System.out.println(”");//用k来控制一行打印10个 } System.
2021-04-13 15:45:49
7985
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅