用java遞歸 fn=f(n-1)+f(n-2) 求n?

234567891011//1 1 2 3 5 8 13    spa public static void main(String[] args) {        static System.out.println(f(7));    }    co public static int f(int n) {        return if(n == 1 || n == 2) {       
相關文章
相關標籤/搜索