摘要: 1. package test; public class LH { public static void main(String[] args) { int i; for(i=100;i<1000;i++){ int b=i/100; int s=i/10%10; int g=i%10; if(i 阅读全文
posted @ 2020-04-02 13:32 计算机1804梁浩 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。 package test; public class LH { public static void main(String[] args) { int sum=0; int i; for(i=1;i<=1 阅读全文
posted @ 2020-04-02 08:23 计算机1804梁浩 阅读(101) 评论(0) 推荐(0) 编辑
摘要: package test; import java.util.Scanner; public class LH { public static void main(String[] args) { System.out.println("请输入一个值x"); Scanner input=new Sc 阅读全文
posted @ 2020-03-26 13:24 计算机1804梁浩 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-24 19:36 计算机1804梁浩 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-19 12:10 计算机1804梁浩 阅读(75) 评论(0) 推荐(0) 编辑
摘要: package lh;public class lh { public static void main(String[] args) { System.out.println("hello world"); }} 阅读全文
posted @ 2020-03-10 10:56 计算机1804梁浩 阅读(62) 评论(0) 推荐(0) 编辑