摘要:
1.有10个评委打分,(去掉一个最高一个最低)求平均分。 import java.util.*; public class demo5 { public static void main(String[] args) { Scanner s = new Scanner(System.in); dou 阅读全文
摘要:
1.定义长度位5的整型数组,输入他们的值,用冒泡排序后输出 import java.util.*; public class aa { public static void main(String[] args) { // TODO Auto-generated method stub; int[] 阅读全文
摘要:
1. 打印出所有的"水仙花数",所谓"水仙花数"是指一个三位数,其各位数字立方和等于该数本身。 public class demo3 { public static void main(String[] args) { int a=100,g,s,b,n=1; for(;a<1000;a++) { 阅读全文
摘要:
1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) public class demo1 { public static void main(String[] args) { // TODO Auto-generated method s 阅读全文
摘要:
1. package test; public class demo{ public static void main(String[] args) { int a = 100; int b = 200; int tmp; //进行数据交换 tmp = a; a = b; b = tmp; Syst 阅读全文