•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 429,898 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,298 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums
Views: 1188 | Replies: 4 | Solved
![]() |
•
•
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,585
Reputation:
Rep Power: 11
Solved Threads: 235
see this code :
hope this helps...
pascal Syntax (Toggle Plain Text)
function FIBO(N : integer) : integer; begin if (N = 1) or (N = 2) then FIBO := 1 else FIBO(N) := FIBO(N - 1) + FIBO(N - 2) end;
Last edited by Jx_Man : Mar 6th, 2008 at 2:04 am.
•
•
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,585
Reputation:
Rep Power: 11
Solved Threads: 235
you're welcome my friend
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: May 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
i try to make fibonacci pattern but i confused.
there are anyone give me a hand for this example?please....
thanks in advance..
I have some knowledge in this field. Fibonacci was a mathematician many centuries ago.
The Fibonacci pattern, or more correctly, Fibonacci spiral is based upon the Fibonacci sequence in which the subsequent following number is the sum of the previous two numbers.
The sequence begins with numbers 0 and 1 which results in the number 1 by addition of 0+1.
The following is the first few lines of the sequence.
0
0+1=1
1+1=2
1+2=3
2+3=5 and so on.
Thus the sequence is:- 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 ....... etc.
The pattern is based upon a series of squares and this would difficult to produce here as it would require a drawing programme.
I hope this helps.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Pascal and Delphi Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Exams its now or never
- Next Thread: Fibonacci pattern, sequence and spiral



Linear Mode