📄 fib.c
字号:
/* fib.c -- find largest Fibonacci sequence number less than N
*
* Copyright (C) 2000, Gray Research LLC. All rights reserved.
* The contents of this file are subject to the XSOC License Agreement;
* you may not use this file except in compliance with this Agreement.
* See the LICENSE file.
*/
enum { N = 10000 };
int main() {
int a = 1, b = 1, c = 1;
while (c < N) {
c = a + b;
a = b;
b = c;
}
return a;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -