#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
-
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(...
-
I am using the manga WORKING. This is the output of this project For this tutorial you need to know : - HTML - CSS - Javasci...
-
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...
-
Adding social icons on your site it's so easy just follow this steps. Step 1: You can customize or select your own social icons any d...
-
Cloud computing is the use of computing resources (hardware and software) that are delivered as a service over a network (typically the Inte...
-
#include <stdio.h> int main(void) { long f0=0, f1=1,n,temp,limit; printf("Enter the limit number:"); scanf("%i",...
-
Code: package gene; import java.util.Scanner; public class Gene { static Scanner console=new Scanner(System.in); public static vo...
-
This is our Web 2 project an online shop when I was a third year college student. Using PHP/HTML, CSS and using mySQL/Xampp as a database. ...
-
This is our class work, the problem is to add even numbers from 1-20 using methods. WITH RETURN TYPE WITH PARAMETER package gene1; imp...
-
Problem: Write a Java Program that calculates and prints the diameter, circumference, or the area of a circle given the radius. The applica...
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