摘要: 1~n以内能被3整除且不能被5整数的整数 public static int[] ma(int n){ //记录1~n以内符合条件的数字有多少个 int count = 0; for(int i=2; i<n; i++){ if(i%3==0 && i%5!=0) count++; } System 阅读全文
posted @ 2018-08-06 11:53 简单的深度 阅读(102) 评论(0) 推荐(0) 编辑