int main() { printf("Which Fibonacci number would you like to know? "); int target; scanf("%d", &target); printf("The #%d Fibonacci number is %d\n", target, get_fib(target)); return 0; }
int main() { printf("第0项fib值等于:%d\n",get_fib(0)); printf("第8项fib值等于:%d\n",get_fib(8)); printf("黄金分割比例近似等于:%lf\n",get_fib(40)*1.0/get_fib(41)); }