摘要:
上机练习 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 public class Text1 { /** * @param args */ public static void main(String[] args) { // TODO Au 阅读全文
摘要:
上机练习 1.使用for循环计算1-100的和,除了以3结尾的那些数 public class Text1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method st 阅读全文
摘要:
上机练习 1.分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) while循环 public class Text1while { /** * @param args */ public static void main(String[] a 阅读全文
摘要:
1.编写一个程序,定义圆的半径,求圆的面积. package homework2; public class Text1 { /** * @param args */ public static void main(String[] args) { int r=1; double area; are 阅读全文