Write the program for fibonacci in c++?
Answer Posted / n.muthukumar
#include
int main()
{
unsigned int i=0,j=0,sum=1,num;
printf("nEnter the limit for the series ");
scanf("%d",&num);
printf("%d",i);
while(sum
{
printf("%d ",sum);
i=j;
j=sum;
sum=i+j;
}
getch();
}
| Is This Answer Correct ? | 12 Yes | 25 No |
Post New Answer View All Answers
How are the features of c++ different from c?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Write about a nested class and mention its use?
What is the c++ code?
How is computer programming useful in real life?
What are the methods of exporting a function from a dll?
What is null c++?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
Write a Program to find the largest of 4 no using macros.
What is a stack? How it can be implemented?
How does list r; differs from list r();?
What is enum class in c++?
If a header file is included twice by mistake in the program, will it give any error?
write a porgram in c++ that reads an integer and print the biggest digit in the number
Name four predefined macros.