摘要: 代码如下: public static void main(String[] args) { int a,b,c; for(int num = 100;num <= 999;num++) { a = num/100; b = num/10%10; c = num%10%10; if(a*a*a+b* 阅读全文
posted @ 2021-10-28 23:30 程序员hg 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: 代码如下: public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("请输入需要查询的月份:"); int month = scanner.nextIn 阅读全文
posted @ 2021-10-28 23:27 程序员hg 阅读(1098) 评论(0) 推荐(0) 编辑
摘要: 代码如下: public static void main(String[] args) { //记录个数 int count = 0; //循环遍历 for(int i = 101;i <= 200;i++) { //这里需要把这个标记放在里面,不能放在外面,默认数字为质数。 boolean fl 阅读全文
posted @ 2021-10-28 23:22 程序员hg 阅读(1204) 评论(0) 推荐(0) 编辑