摘要: 1 public class exercise13{ 2 3 public static void main(String[] args){ 4 //比如,我们可以用数组来解决一个问题 => 体验 5 //定义一个数组 6 //解读 7 //1.double[] 表示是 double类型的数组,数组 阅读全文
posted @ 2024-07-26 09:40 勤奋的小番茄 阅读(6) 评论(1) 推荐(0) 编辑
摘要: 1 public class exercise08{ 2 //编写一个main方法 3 public static void main(string[] args){ 4 //求(1)+(1+2)+(1+2+3)+(1+2+3+4)+...+(1+2+3+...+100)的结果 5 // 6 //思 阅读全文
posted @ 2024-07-26 08:00 勤奋的小番茄 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1 public class exercise08{ 2 //编写一个main方法 3 public static void main(String[] args){ 4 /* 5 求出1-1/2+1/3-1/4..1/100的和 6 思路分析 7 1. 1-1/2+1/3-1/4...1/100 阅读全文
posted @ 2024-07-26 07:44 勤奋的小番茄 阅读(8) 评论(0) 推荐(0) 编辑