int sum(int n) { int i; // 紀錄目前要處理的數字int sum = 0; // 紀錄到目前為止的 ... 先把fn_1紀錄在tmp fn_1 += fn_2; // 最新的費氏數是前面兩個相加fn_2 = tmp; ...
確定! 回上一頁