Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,217,611 members, 8,034,831 topics. Date: Sunday, 22 December 2024 at 01:29 PM |
Nairaland Forum / Science/Technology / Programming / Pascal Subprogram Of Fibonacci Series Using Function (1797 Views)
Pascal Program For Matrix Multiplication / Algorithm For Pascal Program / Without Using Pow Function In C (2) (3) (4)
Pascal Subprogram Of Fibonacci Series Using Function by Graciia: 4:21am On Aug 03, 2014 |
http://detutor8..com/2014/04/pascal-subprogram-of-fibonacci-series.html?m=1 The Fibonacci series is one in which the addition of two previous terms gives you the next term. That is. 0,1,2,3,5,8,13....1 + 2 is the next consecutive term which is 3, so is 3 + 5 (the next term. This program uses a function subprogram to call by value. Program Fibnacci; Var I : integer; Function fibonacci (a: integer): integer; Begin If a=1 then Fibonacci :=0 Else if n=2 then Fibonacci :=1 Else Fibonacci := Fibonacci(a-1) + Fibonacci (n-2); End; Begin For I:= 1 to 20 do Writeln(Fibonacci (I)); Readln End. |
Re: Pascal Subprogram Of Fibonacci Series Using Function by Sundayademola(m): 3:06pm On Aug 03, 2014 |
Who is this for exactly? |
Re: Pascal Subprogram Of Fibonacci Series Using Function by Graciia: 10:35pm On Aug 04, 2014 |
Whoever actually needs it |
Re: Pascal Subprogram Of Fibonacci Series Using Function by asalimpo(m): 11:20pm On Aug 04, 2014 |
Go to d thread "I want to Learn programming ... " and rewrite ur program in one of d languages suggested there in d responses. Then,ur program wud b more useful. |
(1) (Reply)
Can A Jpeg, Png Or Gif Carry Virus? / Possible To Code And Maintain A Blog With Just Html And Css? / I Need The Answer To This C++ Assignment By Saturday Please
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6 |