摘要: 1. package Dmh; /* * 水仙花数 */ public class zy0402 { public static void main(String[] args) { int i ; int ge; int shi; int bai ; for ( i = 100; i < 1000 阅读全文
posted @ 2020-04-02 14:53 DmingH 阅读(115) 评论(0) 推荐(0)
摘要: 1. package Dmh; /** * 求能100以内能被三整除的数之和 * @author Administrator * */ public class d4zzy { public static void main(String[] args) { /* * 用for循环 */ int s 阅读全文
posted @ 2020-04-01 12:52 DmingH 阅读(124) 评论(0) 推荐(0)
摘要: 1.编写程序, 输入变量x的值,如果是1,输出x=1,如果是5,输出x=5,如果是 10,输出 x=10,除了以上几个值,都输出x=none。(知识点:if条件语句) package Dmh; import java.util.Scanner; public class zy4 { public s 阅读全文
posted @ 2020-03-26 12:18 DmingH 阅读(130) 评论(0) 推荐(0)
摘要: package dmh; import java.util.Scanner; public class test3_20 { public static void main(String[] args) { Scanner r= new Scanner(System.in); System.out. 阅读全文
posted @ 2020-03-24 15:50 DmingH 阅读(122) 评论(0) 推荐(0)
摘要: ①public class ddd { public static void main(String[] args) { // TODO Auto-generated method stub int a = 100;int b = 200;int c;//进行数据交换c = a;a = b;b = 阅读全文
posted @ 2020-03-19 12:34 DmingH 阅读(139) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-13 12:57 DmingH 阅读(111) 评论(0) 推荐(0)