⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fib.c

📁 FPGA RSIC CPU设计文档和源码是EDA中对CPU设计非常好用的程序
💻 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 + -