摘要:
1、编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题]? import java.util.Scanner; public class jjj { public static void main(St 阅读全文
摘要:
1. 编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值. public class xxx45 { public static void main(String[] args) { // TODO Auto-generated method stub 阅读全文
摘要:
1.使用for循环计算1-100的和,除了以3结尾的那些数 public class xxxx { public static void main(String[] args) { // TODO Auto-generated method stub int sum=0; for(int i=1;i 阅读全文
摘要:
1.分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句 package myWork; public class xxx { public static void main(String[] args) { int sum = 0; int i 阅读全文