#include <stdio.h> int main(void) { long f0=0, f1=1,n,temp,limit; printf("Enter the limit number:"); scanf("%i",&limit); printf("the fibonnacci number are:\n"); printf("1\n"); for (n=2;n<=limit;++n) { temp=f1; f1+=f0; f0=temp; printf("%i\n",f1); } return 0; }
Subscribe to:
Post Comments
(
Atom
)
Popular Posts
-
I am using the manga WORKING. This is the output of this project For this tutorial you need to know : - HTML - CSS - Javasci...
-
Here is the output of our simple calculator: Here's the code: Dim a, b, r As Integer Dim opr As String Private Sub add_Click(...
-
The user should input this following letter: if Y the result should be YELLOW , if R the result should be RED , if W the result should b...
Blog Archive
-
▼
2012
(
12
)
-
▼
August
(
12
)
- Simple Calculator Program using Microsoft Visual B...
- How to Add Social Icons on Blogger
- Color Program
- ATM System
- What is Cloud Computing?
- Fibonacci Method Turbo C
- How to Add Scroll bar when posting codes on Blogger
- Adding even numbers (1-20)
- Adding even numbers from 1-20 applying METHODS
- Diamond (Nested for-loop)
- Circle: Diameter,Circumference,Area
- Food Menu Program
-
▼
August
(
12
)
0 comments :
Post a Comment