摘要: public class Test{ public static void main(String[] args){ int[] arr = {1,3,5,2,4,8,6}; for(int i = 0; i < arr.length -1; i++){ for(int j = 0; j < arr 阅读全文
posted @ 2020-04-27 19:45 Vena_12 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 例题: 求数列1,1,2,3,5,8,……第42位数。 public Class Test{ public static void main(String[] args){ System.out.println(func(42)); } public static int func(int n){ 阅读全文
posted @ 2020-04-27 19:26 Vena_12 阅读(125) 评论(0) 推荐(0) 编辑