摘要: 1有10个评委打分,(去掉一个最高一个最低)求平均。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 package day01; import ja 阅读全文
posted @ 2020-04-16 13:02 齐志 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 1 package test2; 2 3 public class test2 { 4 5 public static void main(String[] args) { 6 // TODO A 阅读全文
posted @ 2020-04-09 12:02 齐志 阅读(169) 评论(1) 推荐(1) 编辑
摘要: 1. 打印出所有的"水仙花数",所谓"水仙花数"是指一个三位数,其各位数字立方和等于该数本身。例如:153是一个"水仙花数",因为153=1的三次方+5的三次方+3的三次方。(知识点:循环语句、条件语句) package four; public class text { public static 阅读全文
posted @ 2020-04-02 11:35 齐志 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) package day; public class hh { public static void main(String[] args){ int sum=0; for(int i=1 阅读全文
posted @ 2020-04-01 11:39 齐志 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1. package xx; import java.util.Scanner; public class pika { public static void main(String[] args) { Scanner in =new Scanner(System.in); int a = in.n 阅读全文
posted @ 2020-03-26 11:41 齐志 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1. package sdsv; import java.util.Scanner; public class demo { public static void main(String[] args) { @SuppressWarnings("resource") Scanner sc=new S 阅读全文
posted @ 2020-03-21 19:29 齐志 阅读(170) 评论(0) 推荐(0) 编辑
摘要: package chap1; public class Main { public static void main(String[] args) { int a = 10, b = 5, c; c = a; a = b; b = c; System.out.println("a=" + a + " 阅读全文
posted @ 2020-03-19 16:02 齐志 阅读(69) 评论(0) 推荐(0) 编辑
摘要: package finish; public class Test { public static void main(String[] args) { System.out.println("HELLO"); System.out.println("teacher"); } } 阅读全文
posted @ 2020-03-10 17:18 齐志 阅读(56) 评论(0) 推荐(0) 编辑