| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 533 人关注过本帖
标题:我们上课的题目……有谁会的?请教下
取消只看楼主 加入收藏
victorchang
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2007-3-8
收藏
 问题点数:0 回复次数:1 
我们上课的题目……有谁会的?请教下

Fibonacci numbers is a sequence of numbers, where each number (except the first two) is the sum of the two preceding numbers. The first two Fibonacci numbers are 0 and 1.
0, 1, 1, 2, 3, 5, 8, 13, 21, …
Write a program to input a number n (>= 0), and print the nth Fibonacci number (starting from the 0th number.)
Tip: You may establish a loop and compute two consecutive Fibonacci numbers in each iteration. Also, Fibonacci numbers can be very large, use variables of type long long to hold them.

搜索更多相关主题的帖子: 上课 
2007-03-08 12:23
victorchang
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2007-3-8
收藏
得分:0 

那www是什么意思?可以改成另外的么?新手我,多指教下,谢谢啦

2007-03-08 13:17
快速回复:我们上课的题目……有谁会的?请教下
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011350 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved