answersLogoWhite

0


Best Answer

write a program that display the Fibonacci series?

User Avatar

Wiki User

โˆ™ 2012-06-21 07:52:02
This answer is:
User Avatar
Study guides

What is a programming language

What does DOS stand for

What is a software that is distributed for free

What is application software

โžก๏ธ
See all cards
3.76
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
34 Reviews

Add your answer:

Earn +20 pts
Q: Write a program to display the Fibonacci series?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write a C program to display a pascal triangle?

write a c program to display * * * * * * * * * * * * * * * *


Write a program in java to display Armstrong numbers between1 to 1000?

m,kj,kh,kj


Algorithm to write a Fibonacci series?

In a Fibonacci sequence, the previous two numbers are added to generate the next Fibonacci number. F1=1st number F2=2nd number F3=f1+f2=1+2=3 F4=f2+f3=2+3=5 F5=f3+f4=3+5=8, and so on. f1 f2 f3 f4 f5 f6 f7.............. 1 2 3 5 8 13 21............. In algorithm: 1. Assign sum=0, A=0, B=1, i=1 2. Get the no. of terms upto which u want to generate the Fibonacci no, i.e., n. 3.Add A and B to get the next Fibonacci number 4. Assign the value of B to A i.e. A=B 5. Assign the value of sum to B i.e. B=sum 6. Write the value of su to get next Fibonacci number in the series. 7. increment i with 1 i.e. i=i+1 and repeat step 3,4,5,6 with the last value of i=n(n is the no. of terms which u wnt to generate Fibonacci no. series.) 8. Stop


How do you get Fibonacci numbers using visual basic?

good question! I'll write it in semi-program lingo, so you can translate it to visual basic language yourself later. Fibonacci = 1,1,2,3,5,8,13,21 etc. x = 1 y = 1 print x, print y loop(parameters) //loop this function } z = x+y print z x = y y = z { In this, you start with 1 and 1, then add them together and display that number. Then you set y equal to that number, and x equal to the number behind it. then repeat that. This should give you the Fibonacci sequence. -Jp


How to write algorithm in c program?

It is very easy to write the program for seeing the algorithm. Most of the problems that we are write with seeing the algorithm only. Algorithm is very easy to write the any source code seeing this is very useful to write the program

Related questions

Write a program to generate the Fibonacci Series using pointers?

Fibonacci series has absolutely nothing to do with pointers.


Write a program for Fibonacci series by using copy constructor in c plus plus?

write a program for Fibonacci series by using cunstructer ti initilised the value


Write a c program Fibonacci series using for loop in java?

Exactly what do you mean by 'C program in Java'


Write a program to genarate Fibonacci series upto sum numbers?

Where are the numbers that you want to sum.


Write a program to print the Fibonacci series in php upto input value using recursive function?

Is this a homework question?


Write a C program to display a pascal triangle?

write a c program to display * * * * * * * * * * * * * * * *


Write a java program to print the last digit in Fibonacci series?

Just generate the Fibonacci numbers one by one, and print each number's last digit ie number%10.


Write a program to generate the fibonacci series in java?

Set two variables "a" and "b" to the starting number of the Fibonacci series, for example, 1 and 1. Then, repeatedly (i.e., in a loop) set: sum = a + b; b = a; a = sum; ... and print the sum (or equivalently, variable "a").


Write a program to display your name on computer screen?

Faisal


Write a program to display the name of days when a user enters a number?

write a program to display your name age class schoolname e-mail 2hobby based on choice


Write a program in C programming find the Fibonacci series?

This program prints the Fibonacci series #include<stdio.h> #include<conio.h> void main(void) { int i,j,k,n; clrscr(); i=0; j=1; printf("%d %d ",i,j); for(n=0;n<=5;n++) { k=i+j; i=j; j=k; printf("%d ",k); } getch(); }


Write a program to display the given number is even or odd?

I need the program that can display this number 4 12 44 444 5555 66666

People also asked

Write a program to generate the Fibonacci Series?

View results

Write a program to generate the Fibonacci Series using pointers?

View results

Write a c program to print factorial?

View results