本文共 601 字,大约阅读时间需要 2 分钟。
In this tutorial you will learn about program for fibonacci series in c.
在本教程中,您将学习有关c中斐波那契数列的程序。
Fibonacci series is a sequence of numbers in which next number in the sequence is obtained by adding previous two numbers. For example 0, 1, 1, 2, 3, 5, 8, 13.
斐波那契数列是一个数字序列,其中序列中的下一个数字是通过将前两个数字相加而获得的。 例如0、1、1、2、3、5、8、13
Below I have shared C program to implement it.
下面我共享了C程序来实现它。
#includeint main(){ int first=0,second=1,third,i,n; printf("Enter how many elements?"); scanf("%d",&n); printf("\n%d %d",first,second); for(i=2;i
翻译自:
转载地址:http://vrwwd.baihongyu.com/