Friday, March 8, 2019

Fibonacci Series Using Functions in Python

A simple program we wrote in Python using a function to generated Fibonacci series.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting.

work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output



Program Listing

#fibonacci.py
# Written By Jake R. Pomperada and Rollyn M. Moises
# Date : February 27, 2019   Wednesday
# Bacolod City, Negros Occidental

def fibonacci(n):
    if(n <= 1):
        return n
    else:
        return(fibonacci(n-1) + fibonacci(n-2))

print();
print("\tFibonacci Series Using Functions");
print();
n = int(input("\tEnter number of terms : "));
print();
print("\tFibonacci Sequence")
print();
for i in range(n):
 print('\t',fibonacci(i),end='');
print("\n");
print("\tEnd of Progra



No comments:

Post a Comment