473,471 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

fibonnacci

21 New Member
c program to generate fibonnacci series
Sep 12 '06 #1
1 1867
Banfa
9,065 Recognized Expert Moderator Expert
In the fibonnacci sequence each value is made up of the sum of the previous 2 values

f(N+2) = f(N+1) + f(N)

The first 2 values are 1

Writing a C program to do this is relatively easy so have a try first.

Write your code
Compile your code
Fix and errors or warnings that you understand

Then

If you have any errors or warnings that you do not understand or can not fix then post your code and the errors or warnings here and we will help you fix them.

If you have no errors or warnings but the program doesn't work then post the code here, explain what is going wrong and we will help you fix it.

If you have no errors or warnings and the program works then give yourself a pat on the back and post your code here and we will give you tips on programming style.
Sep 12 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

62
by: ROSY | last post by:
hello experts plz answer following questions::: thanks in advance. 1. Out of fgets() and gets() which function is safe to use and why? 2. What is a far pointer? where we use it? 3. What does the...
19
by: Skybuck Flying | last post by:
Hi, I think I might have just invented the variable bit cpu :) It works simply like this: Each "data bit" has a "meta data bit". The meta data bit describes if the bit is the ending bit...
5
by: MARQUITOS51 | last post by:
Im trying to find any code in C developed to calculate the fibonnacci series with or without functions. I need a code example so I can studied and see how it works.
43
by: Tim Chase | last post by:
Just as a pedantic exercise to try and understand Python a bit better, I decided to try to make a generator or class that would allow me to unpack an arbitrary number of calculatible values. In...
3
by: sekitoleko | last post by:
can we try writing a simple c program to do fibonnacci series?
1
by: sekitoleko | last post by:
fibonnacci series are a summation of the preceding two elements to give a proceeding element.Write a program to execute the series up to 10 numbers
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.